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 #!/usr/bin/env ssm
service_respawn='true'
service_command=( /usr/bin/acpid -f ) service_command=( /usr/bin/acpid -f )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#!/usr/bin/env ssm #!/usr/bin/env ssm
# The configuration is in conf.d. # 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 ) 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 #!/usr/bin/env ssm
#service_respawn=true
service_command=( /usr/bin/haproxy -db -f /etc/haproxy/haproxy.cfg ) service_command=( /usr/bin/haproxy -db -f /etc/haproxy/haproxy.cfg )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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