disabled hosts, re-enabled on hobbitd restart
list Richard Deal
Should hobbitd maintain disabled hosts when restarted? The files are still in the data/disabled directory but the hosts are listed as enabled after a restart.
list Henrik Størner
On Tue, Oct 25, 2005 at 05:43:34PM -0400, Deal, Richard wrote:
Should hobbitd maintain disabled hosts when restarted?
It should, provided that hobbitd saves and loads the checkpoint file. To do that, your hobbitd command in hobbitlaunch.cfg must include the options --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk
▸
The files are still in the data/disabled directory but the hosts are listed as enabled after a restart.
These files are purely for backwards compatibility with BB scripts. Hobbit doesn't use any of the files from the data/disabled directory, but relies solely on the Hobbit daemon (hobbitd) to maintain the state of all hosts and tests. Henrik
list Sladewig
▸
Henrik Stoerner wrote:
On Tue, Oct 25, 2005 at 05:43:34PM -0400, Deal, Richard wrote:Should hobbitd maintain disabled hosts when restarted?It should, provided that hobbitd saves and loads the checkpoint file. To do that, your hobbitd command in hobbitlaunch.cfg must include the options --restart=$BBTMP/hobbitd.chk --checkpoint-file=$BBTMP/hobbitd.chk
I added a kill -USR1 to my shutdown script to insure it checkpointed.
stop)
echo "Shutting down hobbit:"
kill -USR1 `cat /var/log/hobbit/hobbitd.pid`
su - hobbit -c "cd $BBHOME/server/bin;./hobbit.sh stop "
;;
--
steve