Force a configtest before reloading the ircd.

git-svn-id: svn+ssh://svn.ipng.nl/usr/share/subversion/repositories/irc.efnet.nl@14 0a436592-62d7-4152-98a5-b7e29e440240
This commit is contained in:
efnet-nl
2009-09-07 20:54:48 +00:00
parent a668120d19
commit 0b661f2117

View File

@ -20,6 +20,8 @@ function bitcron_main()
warning "Incorporating these diffs from the repository" warning "Incorporating these diffs from the repository"
cat $DIFF cat $DIFF
svn update || error "Could not update local copy" svn update || error "Could not update local copy"
echo "Testing ircd config"
/home/ircd/ircd/bin/ircd -conftest || fatal "Invalid configuration at HEAD!"
echo "Sending -HUP to the ircd" echo "Sending -HUP to the ircd"
pkill -HUP ircd || error "Could not send HUP to ircd" pkill -HUP ircd || error "Could not send HUP to ircd"
} }