I'm trying out the alternative init system runit-2.1.1 from here:
http://slackbuilds.org/repository/14.1/system/runit/
So far I've proceeded through the setup of directories and symlinks as described in the documentation to the part of the switch over where it says to setup launching a getty on tty5, but therein lies a critical problem...
I've hit Ctrl+Alt+F5 on rebooting with init=/sbin/runit-init and no getty has appeared as was supposed it and the system has loaded most of the system in single user mode more or less from what I can observe.
The level 1 script I have had to be edited as follows:
Code:
#!/bin/sh
# system one time tasks
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
/etc/rc.d/rc.S
#/etc/init.d/rmnologin
touch /etc/runit/stopit
chmod 0 /etc/runit/stopit
as Slackware doesn't have a rmnologin or rc.rmnologin script anywhere in the system, and I did use whereis to try and search for it, but to no avail.
My question is did I set up the getty for tty5 incorrectly, did I miss something in the documentation (doesn't seem like it), is the runlevel script wrong?
I'm also going to post my runlevel 2 and 3 scripts just to be safe:
Runlevel 2
Code:
#!/bin/sh
PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
runsvchdir default >/dev/null
exec env - PATH=$PATH \
runsvdir -P /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
Runlevel 3
Code:
#!/bin/sh
exec 2>&1
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
LAST=0
test -x /etc/runit/reboot && LAST=6
echo 'Waiting for services to stop...'
sv -w196 force-stop /service/*
sv exit /service/*
echo 'Shutdown...'
/etc/init.d/rc $LAST
Other than possibly editing the obvious links to sysv /etc/init.d/ directory paths and other commands, what else do I need to do?