Let's only respawn the services that might need it

This commit is contained in:
Jack L. Frost 2014-08-02 21:35:27 +04:00
parent 6f3b87a65f
commit 668b2c1d19
36 changed files with 94 additions and 42 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty1 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty2 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty3 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty4 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty5 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1 +0,0 @@
agetty

5
init.d/agetty-tty6 Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'

View File

@ -1,6 +1,6 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/alsactl'
service_args="rdaemon"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_username='torrent'
service_command='sudo'
service_args="-u $service_username -- /usr/bin/bitflu --config=/etc/bitflu.cfg"

View File

@ -10,8 +10,8 @@
unset reload
service_respawn=true
service_command='/usr/local/bin/run-cjdroute'
#service_respawn=true
cjdroute_config='/etc/cjdroute.conf'
cjdroute_admin_port='11234'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/crond'
service_args='-n'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/cupsd'
service_args="-f"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/usr/bin/dbus-daemon'
service_args='--system --nofork'

View File

@ -1,6 +1,6 @@
#!/usr/bin/env watchman
# dhcp client daemon initscript
service_respawn=true
#service_respawn=true
service_command='/usr/sbin/dhcpcd'
service_args='-B'

View File

@ -3,5 +3,5 @@
# soft depend, OR return 1 for hard depend
depends dnscrypt-backup
service_respawn='true'
#service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'

View File

@ -1,4 +1,4 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'

View File

@ -2,7 +2,7 @@
docker_dir='/home/docker'
service_respawn='true'
#service_respawn='true'
service_command='/usr/local/sbin/docker'
service_args="-g ${docker_dir} -d"

View File

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

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
# The configuration is in conf.d.
service_respawn='true'
#service_respawn='true'
service_command='/bin/spawn-fcgi'

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty1 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty2 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty3 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty4 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty5 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1 +0,0 @@
kmscon

7
init.d/kmscon-tty6 Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env watchman
tty=${service_name##*-};
#service_respawn='true'
service_command='/usr/bin/kmscon'
service_args="--vt ${tty}"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/bin/mpd'
service_args='--no-daemon'

View File

@ -1,6 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/usr/bin/nginx'
service_pidfile='/run/nginx.pid'

View File

@ -2,7 +2,7 @@
cfg_nrpe_config='/etc/nrpe/nrpe.cfg'
service_respawn=true
#service_respawn=true
service_command='/usr/bin/nrpe'
service_pidfile='/run/nrpe.pid'
service_args="-c ${cfg_nrpe_config} -d"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/ntpd'
service_args='-n'

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/ntpd'
service_args='-d'

View File

@ -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"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/preload'
service_args='-f'

View File

@ -3,7 +3,7 @@
privoxy_username='privoxy'
privoxy_configfile='/etc/privoxy/config'
service_respawn='true'
#service_respawn='true'
service_command='/usr/bin/privoxy'
service_args="--no-daemon --user ${privoxy_username} ${privoxy_configfile}"

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/bin/syslog-ng'
service_args='-F'

View File

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

View File

@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/usr/bin/xinetd'
service_args='-dontfork'