Be more conservative about respawn

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-03-08 02:34:49 +03:00
parent 8ead4b8c47
commit eea04dff95
35 changed files with 15 additions and 35 deletions

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command=( /usr/bin/acpid -f )

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command=( /usr/bin/agetty 38400 "${service_name##*-}" linux )

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/alsactl rdaemon )
stop() {

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
service_respawn=true
service_respawn=always
service_command=( /usr/bin/atd -f )

View File

@ -2,5 +2,4 @@
# This script is intended for Daemon mode.
# Modify it for your setup.
#service_respawn=true
service_command=( /usr/bin/bitlbee -n )

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_respawn=always
service_command=( /usr/bin/chronyd -u chrony )

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/cupsd -f )

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/dbus-daemon --system --nofork )
service_tmpfiles=( '/run/dbus:dir' )

View File

@ -1,5 +1,4 @@
#!/usr/bin/env ssm
# dhcp client daemon initscript
#service_respawn=true
service_command=( /usr/bin/dhcpcd -B )

View File

@ -3,7 +3,6 @@
# soft depend, OR return 1 for hard depend
depends dnscrypt-backup
#service_respawn='true'
service_command=(
'/usr/bin/dnscrypt-proxy'
"--local-address=${local_ip}:${local_port}"

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=(
'/usr/bin/dnscrypt-proxy'
"--local-address=${local_ip}:${local_port}"

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( '/usr/bin/dockerd' -s overlay2 )
update() {

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
service_respawn=true
service_respawn=always
service_command='/usr/bin/dropbear'

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/udevd'
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"

View File

@ -1,5 +1,4 @@
#!/usr/bin/env ssm
# The configuration is in conf.d.
#service_respawn='true'
service_command=( /usr/bin/spawn-fcgi -s "$cfg_socket" -P "$service_pidfile" -u "$cfg_user" -g "$cfg_group" -- /usr/bin/fcgiwrap )

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/haproxy -db -f /etc/haproxy/haproxy.cfg )

View File

@ -1,5 +1,4 @@
#!/usr/bin/env ssm
# dhcp client daemon initscript
#service_respawn=true
service_command=( /usr/sbin/dhcpd -f )

View File

@ -2,7 +2,7 @@
tty="${service_name##*-}"
service_respawn='true'
service_respawn=always
service_command=(
'/usr/bin/kmscon'
--vt "$tty"

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/bin/libvirtd'

View File

@ -1,5 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_workdir='/usr'
service_command=( /usr/bin/mysqld_safe --datadir=/var/lib/mysql )

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/mpd --no-daemon )

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
service_respawn='true'
service_respawn=always
service_command='/usr/bin/ngetty'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ssm
# For respawn to work, set 'daemon no' in nginx.conf
#service_respawn='true'
#service_respawn=on-failure
service_command='/usr/bin/nginx'
service_pidfile='/run/nginx.pid'

View File

@ -2,6 +2,5 @@
cfg_nrpe_config='/etc/nrpe/nrpe.cfg'
#service_respawn=true
service_command=( /usr/bin/nrpe -c "$cfg_nrpe_config" -d )
service_pidfile='/run/nrpe.pid'

View File

@ -2,6 +2,6 @@
cfg_ovpn_instance="${service_name##*-}"
service_respawn='true'
service_respawn=on-failure
service_command=( /usr/bin/openvpn client.cfg )
service_workdir="/etc/openvpn/$cfg_ovpn_instance"

View File

@ -1,4 +1,3 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command=( /usr/bin/preload -f )

View File

@ -1,5 +1,5 @@
#!/usr/bin/env ssm
# Author: Alad Wenter
#service_respawn=true
service_respawn=always
service_command=( /usr/bin/rsyslogd -n )

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_respawn=always
service_command=( /usr/bin/crond -n )

View File

@ -2,7 +2,7 @@
cfg_sshd_cfgdir='/etc/ssh'
service_respawn=true
service_respawn=always
service_command=( /usr/bin/sshd -D -f "$cfg_sshd_cfgdir/sshd_config" )
depends_ready=( znet )

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
#service_respawn=true
sevice_respawn=always
service_command=( /usr/bin/syslog-ng -F )

View File

@ -1,6 +1,5 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_command='/usr/lib/systemd/systemd-udevd'
cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"

View File

@ -2,5 +2,5 @@
instance="${service_name##*-}"
service_respawn='true'
service_respawn=on-failure
service_command=( /usr/bin/tincd -D -n "$instance" )

View File

@ -1,6 +1,6 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_respawn=on-failure
service_command=( /usr/bin/unbound -d )
pre_reload() {

View File

@ -1,6 +1,6 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_respawn=on-failure
service_command=( /usr/bin/vdevd -f /dev )
service_tmpfiles=( '/run/vdev:dir' '/run/udev:symlink:/dev/metadata/udev' )

View File

@ -1,4 +1,4 @@
#!/usr/bin/env ssm
#service_respawn='true'
service_respawn=always
service_command=( /usr/bin/crond -f )