Use separate, non-default rundir when runit is not pid1

parent 66e90711
Pipeline #48485 failed with stages
in 8 minutes and 22 seconds
...@@ -11,7 +11,7 @@ if [ -f /run/runit.stopit ] ; then ...@@ -11,7 +11,7 @@ if [ -f /run/runit.stopit ] ; then
if grep -q -w -i 'single' /proc/cmdline ; then if grep -q -w -i 'single' /proc/cmdline ; then
chpst -P /sbin/sulogin -p /dev/tty1 chpst -P /sbin/sulogin -p /dev/tty1
fi fi
runsvchdir default
# Give sysv scripts 90 seconds (hardcoded in async-timeout source) to # Give sysv scripts 90 seconds (hardcoded in async-timeout source) to
# start. If something goes wrong, they are detached from controlling # start. If something goes wrong, they are detached from controlling
...@@ -22,6 +22,8 @@ if [ -f /run/runit.stopit ] ; then ...@@ -22,6 +22,8 @@ if [ -f /run/runit.stopit ] ; then
# login. # login.
/lib/runit/async-timeout /lib/runit/run_sysv_scripts '/etc/rc2.d' /lib/runit/async-timeout /lib/runit/run_sysv_scripts '/etc/rc2.d'
else
runsvchdir svmanaged
fi fi
exec env - PATH=$PATH \ exec env - PATH=$PATH \
......
/etc/runit/runsvdir/default /etc/runit/runsvdir/default
/etc/runit/runsvdir/svmanaged
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment