mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
puppet: Work around sysvinit supervisor init bug.
The sysvinit script for supervisor has a long-standing bug where `/etc/init.d/supervisor restart` stops but does not then start the supervisor process. Work around this by making restart then try to start, and return if it is currently running.
This commit is contained in:
committed by
Tim Abbott
parent
2daad58afa
commit
ee7c849f8a
@@ -9,7 +9,9 @@ class zulip::common {
|
||||
$supervisor_conf_file = '/etc/supervisor/supervisord.conf'
|
||||
$supervisor_service = 'supervisor'
|
||||
$supervisor_start = '/etc/init.d/supervisor start'
|
||||
$supervisor_reload = '/etc/init.d/supervisor restart'
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877086
|
||||
# "restart" is actually "stop" under sysvinit
|
||||
$supervisor_reload = '/etc/init.d/supervisor restart && (/etc/init.d/supervisor start || /bin/true) && /etc/init.d/supervisor status'
|
||||
}
|
||||
'redhat': {
|
||||
$nagios_plugins = 'nagios-plugins'
|
||||
|
||||
Reference in New Issue
Block a user