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:
parent
655daedb93
commit
244f4bbe7a
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;"
|
||||
|
|
Loading…
Reference in a new issue