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:
Alex Vandiver
2021-07-22 19:35:36 +00:00
parent 88a2a80d81
commit 9824a9d7cf

View File

@@ -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'