1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-11-24 21:20:42 +01:00

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