mirror of https://github.com/zulip/zulip.git
puppet: Specify commands for restarting supervisord.
(imported from commit e1a6322fd9ecf1655ec4325d0fcaf0ad160202ae)
This commit is contained in:
parent
1acc865d19
commit
508ddca539
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue