Difference between revisions of "Howto make BSD-style init SysV-compatible"

From Linux-VServer

Jump to: navigation, search
 
Line 1: Line 1:
to make archlinux boot nicely, there are some modifications on the init scripts needet.
+
to make archlinux boot nicely, there are some modifications on the init scripts needet.<br>
first create a /etc/init.d dir and add a new file /etc/init.d/rc with content:
+
first create a /etc/init.d dir and add a new file /etc/init.d/rc with content:<br>
[code]
+
<pre>
 
if [ $1 -eq 3 ]; then
 
if [ $1 -eq 3 ]; then
 
echo "entering runlevel 3:multi";
 
echo "entering runlevel 3:multi";
Line 28: Line 28:
 
/etc/rc.multi
 
/etc/rc.multi
 
fi
 
fi
[/code]
+
<pre>
this script starts the right init-scripts for the runlevels. you now should be able to boot up your archlinux guest system. but there are some more work to get around all these warning and error messages on bootup.
+
this script starts the right init-scripts for the runlevels. you now should be able to boot up your archlinux guest system. but there are some more work to get around all these warning and error messages on bootup.<br>
 
you need to remove all that has to do with kernel, driver and networking. on archlinux edit
 
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.
+
/etc/rc.conf and remove networking and syslog-ng (syslog-ng will not work) from DAEMONS.<br>
edit /etc/rc.shutdown and comment out below and including [b]stat_busy "Saving Random Seed"[/b]
+
edit /etc/rc.shutdown and comment out below and including <b>stat_busy "Saving Random Seed"</b>
 
+
<br><br>
 
have fun with you archlinux guest and feel free to improve the rc script :)
 
have fun with you archlinux guest and feel free to improve the rc script :)

Revision as of 14:09, 11 December 2006

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";
/etc/rc.multi
fi
if [ $1 -eq 6 ]; then
echo "entering runlevel 6:reboot";
/etc/rc.shutdown
fi
if [ $1 -eq 0 ]; then
echo "entering runlevel 0: shutdown";
/etc/rc.shutdown
fi
if [ $1 -eq 4 ]; then
echo "entering runlevel 4";
fi
if [ $1 -eq 5 ]; then
echo "entering runlevel 5";
fi
if [ $1 -eq 1 ]; then
echo "entering runlevel 1:single";
/etc/rc.single
fi
if [ $1 -eq 2 ]; then
echo "entering runlevel 2:multi";
/etc/rc.multi
fi
<pre>
this script starts the right init-scripts for the runlevels. you now should be able to boot up your archlinux guest system. but there are some more work to get around all these warning and error messages on bootup.<br>
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.<br>
edit /etc/rc.shutdown and comment out below and including <b>stat_busy "Saving Random Seed"</b>
<br><br>
have fun with you archlinux guest and feel free to improve the rc script :)
Personal tools