diff options
Diffstat (limited to 'testing/runit/runit.initd')
-rw-r--r-- | testing/runit/runit.initd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/runit/runit.initd b/testing/runit/runit.initd index 59fd4a4c9b..979b7c6bc5 100644 --- a/testing/runit/runit.initd +++ b/testing/runit/runit.initd @@ -2,6 +2,7 @@ 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" @@ -9,4 +10,12 @@ retry="SIGHUP/5" depend() { need localmount + after firewall } + +start_pre() { + if [ ! -L "$rundir" ]; then + rm -f $rundir && ln -s $command_args $rundir + fi +} + |