Editing
Msg01363.html
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!
----- [<nowiki/>[[msg01362.html|Date Prev]]][<nowiki/>[[msg01364.html|Date Next]]][<nowiki/>[[msg01355.html|Thread Prev]]][<nowiki/>[[msg01360.html|Thread Next]]][<nowiki/>[[index.html#01363|Date Index]]][<nowiki/>[[threads.html#01363|Thread Index]]] <span id="re-vserver-suse-init-script-problem-solved"></span> = Re: [vserver] SuSE init script problem solved = ----- * '''From:''' Lars Braeuer * '''Date:''' Fri, 20 Sep 2002 04:51:15 -0400 ----- <pre> I probably attached the wrong script last time. Use this one or your redhat script and it'll work. although the workaround works fine, I'd suggest to switch back to the startscript, the way it's supposed to be. lars Per R Laursen wrote: > Hi Lars, > > Sorry for the late responce. > > It sems to me, that the rc script you attached to the mail list was > identical to the original SuSE 8.0 rc script. > > I have made the work arround, you proposed, to start the services in > /etc/vservers/*.sh . It works nice. > > Kind regards > > Per R Laursen > > On Friday 13 September 2002 10:36, Lars Braeuer wrote: > >>below there's a description of the problem I've had and how I solved >>it. SuSE is unable to run the init scripts in the specified runlevel, >>when starting a vserver. the solution is to use a modified startscript >>from another system. I replace the /etc/rc.d/rc in my SuSE vserver with >>a debian startscript I got from a friend. >> >>one thing I had to modify within the debian rc script is the path to >>the runlevel dirs. I attached the small init script to this mail, so >>copy it over the /etc/rc.d/rc file IN YOUR VSERVER, it's already >>modified. If you'd like to do it yourself, just replace the string >>/etc/rc$runlevel.d with /etc/rc.d/rc$runlevel.d >> >>since vserver seems to be developed using a redhat server, I guess you >>can also use the /etc/rc.d/rc script from a redhat installation. >> >>maybe this script or a RH rc script could be included in the future >>releases, so that SuSE users have no problems. or there should be at >>least a way to download such a script from the download page. >> >>details about the problem: >> >>> don't know if this is a general (known) bug, or if it just happens >>>on our machine. The server is running SuSE 8.0 with the 2.4.19ctx-13 >>>kernel patch and vserver 0.19. >>> >>>When starting a vserver with the "vserver <vserver-name> start" >>>command, there's no init script executed in the specified runlevel, >>>e.g. /etc/rc.d/rc3.d. >>> >>>To check if the /etc/rc.d/rc script fails at the first check, which >>>is... test "$PREVLEVEL" = "$RUNLEVEL" && exit 0 >>>...I added the following two lines to the top of the script: >>>echo "PRELEVEL " $PRELEVEL >>>echo "RUNLEVEL " $RUNLEVEL >>>Both variables PRELEVEL and RUNLEVEL are empty. Executing >>>/sbin/runlevel in the vserver also returns "unknown". >>> >>>But a ps -ax within the vserver (vserver <vserver-name> enter), >>>contains: PID TTY STAT TIME COMMAND >>> 1 ? S 0:04 init [3] >>> >>>The file /var/run/utmp, which is accessed by /sbin/runlevel within >>>the vserver is empty. In the main system it is filled with some data. >>> >>>It doesn't help to comment out the check I mentioned above. >>>Doing this brings up the following when starting the vserver: >>>stty: standard input: Inappropriate ioctl for device >>> >>>cat /dev/console within the vserver shows: >>>stty: standard input: Inappropriate ioctl for device >>>stty: standard input: Inappropriate ioctl for device >>>blogd: can not open (null): No such file or directory >>>Master Resource Control: previous runlevel: , switching to runlevel: >>>Master Resource Control: runlevel has been reached >>>stty: standard input: Inappropriate ioctl for device >>> >>>Hope this is a general issue that can be fixed. >>> >>>Lars >> > > > </pre> '''Attachment: [[bin14663.bin|<code>rc</code>]]'''<br /> ''Description:'' application/java-vm ----- * '''References''': ** '''[[msg01355.html|[vserver] SuSE init script problem solved]]''' *** ''From:'' Lars Braeuer * Prev by Date: '''[[msg01362.html|re: [vserver] RE More that 16 IPs per vserver ?]]''' * Next by Date: '''[[msg01364.html|[vserver] vserver chat on IRC.]]''' * Previous by thread: '''[[msg01355.html|[vserver] SuSE init script problem solved]]''' * Next by thread: '''[[msg01360.html|[vserver] Just for fun ... (a minor bug)]]''' * Index(es): ** [[index.html#01363|'''Date''']] ** [[threads.html#01363|'''Thread''']]
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