From 0648ac15d3b547a3c1f842fdc5f44bb65bf1e8bd Mon Sep 17 00:00:00 2001 From: Antsiferov Grigory Date: Fri, 16 Feb 2018 23:27:09 +0300 Subject: [PATCH] Update defaults for restart-services --- sls/openrc/files/restart-services.conf.tpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sls/openrc/files/restart-services.conf.tpl b/sls/openrc/files/restart-services.conf.tpl index 8df9aa1..4777c6e 100644 --- a/sls/openrc/files/restart-services.conf.tpl +++ b/sls/openrc/files/restart-services.conf.tpl @@ -6,11 +6,11 @@ 'always': '(acpid|apcupsd|atd|autofs|(bareos|bacula)-fd' + '|cronie|vixie-cron|dcron|incron|anacron|fcron|bcron' + '|haveged|irqbalance|lldpd|smartd|snmpd|mdadm|lvm-monitoring' + - '|named|unbound|nsd|ntpd|chrony' + + '|named|unbound|nsd|ntpd|chronyd' + '|postfix|qmail|opendkim|pypolicyd-spf|nullmailer|opendnssec' + '|sshd|zabbix-agentd|collectd|nagios|monit|salt-(minion|syndic)|cf-.*)', 'always-nodeps': '(udev|ulogd|rpc.*|rsyslog|syslog-ng|metalog|lvmetad)', - 'critical': '((bareos|bacula)-(sd|dir)|.*ftpd|minidlna' + + 'critical': '((bareos|bacula)-(sd|dir)|.*ftpd|minidlna|git-daemon' + '|nginx|uwsgi|apache2|php-fpm|exim|dovecot|ejabberd|asterisk' + '|mysql|postgresql-.*|mongodb|riak|dnet_.*|ceph-.*' + '|elasticsearch|kibana|carbon-*|grafana|jenkins|consul|samba' + @@ -27,36 +27,36 @@ # Define services that can always be restarted # Will run: rc-service $SV -- --ifstarted restart -SV_ALWAYS='{{ conf.get('always', defaults['always'])}}' +SV_ALWAYS='{{ conf.get('always', defaults['always']) }}' # Define services that can always be restarted, but excluding dependencies # Will run: rc-service $SV -- --ifstarted --nodeps restart -SV_ALWAYS_WITH_NODEPS='{{ conf.get('always', defaults['always-nodeps'])}}' +SV_ALWAYS_WITH_NODEPS='{{ conf.get('always', defaults['always-nodeps']) }}' # Define services that must not be restarted without # the '--critical' option. # Here you should put services where a restart would # interrupt a service being offered to your users # Will run: rc-service $SV -- --ifstarted restart -SV_CRITICAL='{{ conf.get('critical', defaults['critical'])}}' +SV_CRITICAL='{{ conf.get('critical', defaults['critical']) }}' # Define services that must not be restarted without # the '--critical' option and that require "--nodeps" # Here you should put services where a restart would # interrupt a service being offered to your users # Will run: rc-service $SV -- --ifstarted --nodeps restart -SV_CRITICAL_WITH_NODEPS='{{ conf.get('critical-nodeps', defaults['critical-nodeps'])}}' +SV_CRITICAL_WITH_NODEPS='{{ conf.get('critical-nodeps', defaults['critical-nodeps']) }}' # Define services than only need to be reloaded # instead of restarted # Will run: rc-service $SV -- --ifstarted reload -SV_ALWAYS_RELOAD_ONLY='{{ conf.get('always-reload-only', defaults['always-reload-only'])}}' +SV_ALWAYS_RELOAD_ONLY='{{ conf.get('always-reload-only', defaults['always-reload-only']) }}' # Define services that should be ignored -SV_IGNORE='{{ conf.get('ignore', defaults['ignore'])}}' +SV_IGNORE='{{ conf.get('ignore', defaults['ignore']) }}' # Define processes started via inittab that should be killed -INITTAB_KILLALL='{{ conf.get('inittab-killall', defaults['inittab-killall'])}}' +INITTAB_KILLALL='{{ conf.get('inittab-killall', defaults['inittab-killall']) }}' # load addional config files # to extend options in another file use a syntax like SV_ALWAYS+=( myservice )