blob: 979b7c6bc550600e88c33246b78b6925748161f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/sbin/openrc-run
command="/sbin/runsvdir"
command_args="/etc/service"
rundir="/run/service"
pidfile="/run/${SVCNAME}.pid"
command_background="true"
description="starts and monitors a collection of runsv(8) processes"
retry="SIGHUP/5"
depend() {
need localmount
after firewall
}
start_pre() {
if [ ! -L "$rundir" ]; then
rm -f $rundir && ln -s $command_args $rundir
fi
}
|