Editing
Howto make BSD-style init SysV-compatible
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
To make archlinux boot nicely, some modifications to the init scripts are needed.<br /> First create a /etc/init.d dir and add a new file /etc/init.d/rc with content:<br /> 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 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.<br /> You need to remove all that has to do with kernel, driver and networking. Edit the /etc/rc.conf file and remove networking from DAEMONS.<br /> to make syslog-ng work edit /etc/syslog-ng.conf and comment out the line: <b>pipe("/proc/kmsg")</b> Edit /etc/rc.shutdown and comment out all below and including <b>stat_busy "Saving Random Seed"</b> to <b># Power off or reboot</b> <br /><br /> Have fun with your archlinux guest and feel free to improve the rc script :) [[Category:OS guest under linux-vserver]]
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information