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>
This commit is contained in:
David Oberhollenzer 2019-03-20 15:45:24 +01:00
parent 655daedb93
commit 244f4bbe7a
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
description "DHCP client - master service" description "DHCP client - master service"
type wait type respawn limit 5
target boot target boot
after network after network
tty /dev/null tty /dev/null
exec { exec {
mkdir -p /var/db/dhcpcd mkdir -p /var/db/dhcpcd
dhcpcd --inactive dhcpcd --inactive --nobackground
} }

View File

@ -1,6 +1,6 @@
description "start nginx web server" description "nginx web server"
type once type respawn limit 10
target boot target boot
after network after network
tty /dev/null tty /dev/null
exec nginx exec nginx -g "daemon off;"