Let's only respawn the services that might need it

This commit is contained in:
2014-08-02 21:35:27 +04:00
parent 6f3b87a65f
commit 668b2c1d19
36 changed files with 94 additions and 42 deletions
+1 -1
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'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
-1
View File
@@ -1 +0,0 @@
agetty
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_command='/bin/agetty'
service_args="38400 ${service_name##*-} linux"
#service_respawn='true'
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/alsactl'
service_args="rdaemon"
+1 -1
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"
+1 -1
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'
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/crond'
service_args='-n'
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/cupsd'
service_args="-f"
+1 -1
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'
+1 -1
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'
+1 -1
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'
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'
+1 -1
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"
+1 -1
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}"
+1 -1
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'
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
-1
View File
@@ -1 +0,0 @@
kmscon
+7
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}"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/bin/mpd'
service_args='--no-daemon'
-1
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/usr/bin/nginx'
service_pidfile='/run/nginx.pid'
+1 -1
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"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/ntpd'
service_args='-n'
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/ntpd'
service_args='-d'
-7
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"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
#service_respawn='true'
service_command='/bin/preload'
service_args='-f'
+1 -1
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}"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/bin/syslog-ng'
service_args='-F'
+1 -1
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}"
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env watchman
service_respawn=true
#service_respawn=true
service_command='/usr/bin/xinetd'
service_args='-dontfork'