Be more conservative about respawn
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
8ead4b8c47
commit
eea04dff95
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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' )
|
||||||
|
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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" )
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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' )
|
||||||
|
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user