Howto make BSD-style init SysV-compatible

From Linux-VServer

Revision as of 15:44, 11 December 2006 by (Talk)

Jump to: navigation, search

to make archlinux boot nicely, there are some modifications on the init scripts needet.
first create a /etc/init.d dir and add a new file /etc/init.d/rc with content:

if [ $1 -eq 3 ]; then
echo "entering runlevel 3:multi";
if [ $1 -eq 6 ]; then
echo "entering runlevel 6:reboot";
if [ $1 -eq 0 ]; then
echo "entering runlevel 0: shutdown";
if [ $1 -eq 4 ]; then
echo "entering runlevel 4";
if [ $1 -eq 5 ]; then
echo "entering runlevel 5";
if [ $1 -eq 1 ]; then
echo "entering runlevel 1:single";
if [ $1 -eq 2 ]; then
echo "entering runlevel 2:multi";

this script starts the right init-scripts for the runlevels. you now should be able to boot up your archlinux guest system. but there is some more work to get around all these warning and error messages on bootup.
you need to remove all that has to do with kernel, driver and networking. on archlinux edit /etc/rc.conf and remove networking and syslog-ng (syslog-ng will not work) from DAEMONS.
edit /etc/rc.shutdown and comment out all below and including stat_busy "Saving Random Seed" to # Power off or reboot

have fun with you archlinux guest and feel free to improve the rc script :)

Personal tools