Let's only respawn the services that might need it
This commit is contained in:
parent
6f3b87a65f
commit
668b2c1d19
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_respawn='true'
|
||||||
service_command='/bin/agetty'
|
service_command='/bin/agetty'
|
||||||
service_args="38400 ${service_name##*-} linux"
|
service_args="38400 ${service_name##*-} linux"
|
||||||
service_respawn='true'
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty1
Executable file
5
init.d/agetty-tty1
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty2
Executable file
5
init.d/agetty-tty2
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty3
Executable file
5
init.d/agetty-tty3
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty4
Executable file
5
init.d/agetty-tty4
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty5
Executable file
5
init.d/agetty-tty5
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1 +0,0 @@
|
||||||
agetty
|
|
5
init.d/agetty-tty6
Executable file
5
init.d/agetty-tty6
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
service_command='/bin/agetty'
|
||||||
|
service_args="38400 ${service_name##*-} linux"
|
||||||
|
#service_respawn='true'
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/alsactl'
|
service_command='/bin/alsactl'
|
||||||
service_args="rdaemon"
|
service_args="rdaemon"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_username='torrent'
|
service_username='torrent'
|
||||||
service_command='sudo'
|
service_command='sudo'
|
||||||
service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg"
|
service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg"
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
unset reload
|
unset reload
|
||||||
|
|
||||||
|
service_respawn=true
|
||||||
service_command='/usr/local/bin/run-cjdroute'
|
service_command='/usr/local/bin/run-cjdroute'
|
||||||
#service_respawn=true
|
|
||||||
|
|
||||||
cjdroute_config='/etc/cjdroute.conf'
|
cjdroute_config='/etc/cjdroute.conf'
|
||||||
cjdroute_admin_port='11234'
|
cjdroute_admin_port='11234'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/crond'
|
service_command='/bin/crond'
|
||||||
service_args='-n'
|
service_args='-n'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/cupsd'
|
service_command='/bin/cupsd'
|
||||||
service_args="-f"
|
service_args="-f"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/usr/bin/dbus-daemon'
|
service_command='/usr/bin/dbus-daemon'
|
||||||
service_args='--system --nofork'
|
service_args='--system --nofork'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
# dhcp client daemon initscript
|
# dhcp client daemon initscript
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/usr/sbin/dhcpcd'
|
service_command='/usr/sbin/dhcpcd'
|
||||||
service_args='-B'
|
service_args='-B'
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
# 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_respawn='true'
|
||||||
service_command='/usr/bin/dnscrypt-proxy'
|
service_command='/usr/bin/dnscrypt-proxy'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/usr/bin/dnscrypt-proxy'
|
service_command='/usr/bin/dnscrypt-proxy'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
docker_dir='/home/docker'
|
docker_dir='/home/docker'
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/usr/local/sbin/docker'
|
service_command='/usr/local/sbin/docker'
|
||||||
service_args="-g ${docker_dir} -d"
|
service_args="-g ${docker_dir} -d"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#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,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
# The configuration is in conf.d.
|
# The configuration is in conf.d.
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/spawn-fcgi'
|
service_command='/bin/spawn-fcgi'
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty1
Executable file
7
init.d/kmscon-tty1
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty2
Executable file
7
init.d/kmscon-tty2
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty3
Executable file
7
init.d/kmscon-tty3
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty4
Executable file
7
init.d/kmscon-tty4
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty5
Executable file
7
init.d/kmscon-tty5
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1 +0,0 @@
|
||||||
kmscon
|
|
7
init.d/kmscon-tty6
Executable file
7
init.d/kmscon-tty6
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
|
tty=${service_name##*-};
|
||||||
|
|
||||||
|
#service_respawn='true'
|
||||||
|
service_command='/usr/bin/kmscon'
|
||||||
|
service_args="--vt ${tty}"
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/bin/mpd'
|
service_command='/bin/mpd'
|
||||||
service_args='--no-daemon'
|
service_args='--no-daemon'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
|
||||||
service_command='/usr/bin/nginx'
|
service_command='/usr/bin/nginx'
|
||||||
service_pidfile='/run/nginx.pid'
|
service_pidfile='/run/nginx.pid'
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
cfg_nrpe_config='/etc/nrpe/nrpe.cfg'
|
cfg_nrpe_config='/etc/nrpe/nrpe.cfg'
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/usr/bin/nrpe'
|
service_command='/usr/bin/nrpe'
|
||||||
service_pidfile='/run/nrpe.pid'
|
service_pidfile='/run/nrpe.pid'
|
||||||
service_args="-c ${cfg_nrpe_config} -d"
|
service_args="-c ${cfg_nrpe_config} -d"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/ntpd'
|
service_command='/bin/ntpd'
|
||||||
service_args='-n'
|
service_args='-n'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/ntpd'
|
service_command='/bin/ntpd'
|
||||||
service_args='-d'
|
service_args='-d'
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env watchman
|
|
||||||
|
|
||||||
cfg_ovpn_instance="${service_name##*-}"
|
|
||||||
|
|
||||||
service_command="/usr/sbin/openvpn"
|
|
||||||
service_workdir="/etc/openvpn/$cfg_ovpn_instance"
|
|
||||||
service_args="client.cfg"
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/bin/preload'
|
service_command='/bin/preload'
|
||||||
service_args='-f'
|
service_args='-f'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
privoxy_username='privoxy'
|
privoxy_username='privoxy'
|
||||||
privoxy_configfile='/etc/privoxy/config'
|
privoxy_configfile='/etc/privoxy/config'
|
||||||
|
|
||||||
service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/usr/bin/privoxy'
|
service_command='/usr/bin/privoxy'
|
||||||
service_args="--no-daemon --user ${privoxy_username} ${privoxy_configfile}"
|
service_args="--no-daemon --user ${privoxy_username} ${privoxy_configfile}"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/bin/syslog-ng'
|
service_command='/bin/syslog-ng'
|
||||||
service_args='-F'
|
service_args='-F'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn='true'
|
#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}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env watchman
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
service_respawn=true
|
#service_respawn=true
|
||||||
service_command='/usr/bin/xinetd'
|
service_command='/usr/bin/xinetd'
|
||||||
service_args='-dontfork'
|
service_args='-dontfork'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user