puppet: Don't restart all services when doing supervisor config update.

(imported from commit 767dc26293f301ee18fc149156ad43ad1bd4b43c)
This commit is contained in:
Tim Abbott 2013-08-26 17:04:22 -04:00
parent 3152a8ef6e
commit ee0a3e55b7
1 changed files with 7 additions and 5 deletions

View File

@ -13,12 +13,14 @@ class zulip::supervisor {
# 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.
# better option is to tell supervisord to reread its config via
# supervisorctl and then to "update". You need to do both --
# after a "reread", supervisor won't actually take actual based on
# the changed configuration until you do an "update" (I assume
# this is so you can check if your config file parses without
# doing anything, but it's really confusing)
hasrestart => true,
restart => "supervisorctl reload"
restart => "bash -c 'supervisorctl reread && supervisorctl update'"
}
file { "/etc/supervisor/supervisord.conf":