poise / supervisor

Development repository for Opscode Cookbook supervisor
Apache License 2.0
64 stars 163 forks source link

Fixed init script issues #70

Open markunsworth opened 9 years ago

markunsworth commented 9 years ago

Replaced use of $LABEL with $NAME as $LABEL does not exist so results in annoying output. e.g

is running

instead of:

supervisord is running
markunsworth commented 9 years ago

Also made the DODTIME (wait time when restarting) configurable. Based the default on the default stopwaitsecs time in the process configuration.

This should reduce issues when restarting and supervisor hasn't actually stopped, due to processes having not stopped, when the subsequent start command is called.

markunsworth commented 9 years ago

Added an explicit check to see if supervisor is running when performing a restart and force_stop if it is.