aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 15:45:24 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-20 20:52:55 +0100
commit244f4bbe7a03b8ce1f706e2481deaabcdf7c2b3c (patch)
tree759725bb56f2d75a9b0ad70acb0aa7b899068a90 /services
parent655daedb938b4e73b4a6c88bb2e13d652c0cccb5 (diff)
Run various services in foreground
This commit changes dhpcd master and nginx scripts to run the respective processes in background and let initd supervise them directly. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'services')
-rw-r--r--services/dhcpcdmaster4
-rw-r--r--services/nginx6
2 files changed, 5 insertions, 5 deletions
diff --git a/services/dhcpcdmaster b/services/dhcpcdmaster
index 879497a..1bb0a3a 100644
--- a/services/dhcpcdmaster
+++ b/services/dhcpcdmaster
@@ -1,10 +1,10 @@
description "DHCP client - master service"
-type wait
+type respawn limit 5
target boot
after network
tty /dev/null
exec {
mkdir -p /var/db/dhcpcd
- dhcpcd --inactive
+ dhcpcd --inactive --nobackground
}
diff --git a/services/nginx b/services/nginx
index 6a36af9..4a77ca4 100644
--- a/services/nginx
+++ b/services/nginx
@@ -1,6 +1,6 @@
-description "start nginx web server"
-type once
+description "nginx web server"
+type respawn limit 10
target boot
after network
tty /dev/null
-exec nginx
+exec nginx -g "daemon off;"