puppet: Specify commands for restarting supervisord.

(imported from commit e1a6322fd9ecf1655ec4325d0fcaf0ad160202ae)
This commit is contained in:
Tim Abbott 2013-07-18 16:38:40 -04:00
parent 1acc865d19
commit 508ddca539
1 changed files with 12 additions and 0 deletions

View File

@ -7,5 +7,17 @@ class humbug::supervisor {
require => [File["/var/log/humbug"],
Package["supervisor"],
],
hasstatus => true,
status => "supervisorctl status",
# The "restart" option in the init script does not work. We could
# tell Puppet to fall back to stop/start, which does work, but the
# better option is to tell supervisord to restart via supervisorctl
#
# Idealy we would use the "reread" command, but that does't seem
# to actually work.
hasrestart => true,
restart => "supervisorctl reload"
}
}