LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Runlevel 2

[ILUG] Runlevel 2

Dave Neary dave.neary at palamon.ie
Thu May 31 12:21:58 IST 2001


Jason Corcoran wrote:
> 
> On Thursday 31 May 2001 10:46, Niall O Broin wrote:
> > On Thu, May 31, 2001 at 10:05:17AM +0100, Jason Corcoran wrote:
> > > For some reason my SuSE machine is starting up at runlevel 2 and kdm is
> > > not starting. Can I force it to go to run level 3 or is it stopping at
> > > runlevel 2 for a reason.
> >
> > As the risk of being "Don't ask stupid questions - of course I'm doing
> > that" do you have 3 as your default run level ? Does  grep initdefault
> > /etc/inittab return
> >
> > id:3:initdefault:
> >
> > or
> >
> > id:2:initdefault:
> >
> >
> > If the latter, there's your problem. If the former, then something's sadly
> > broken. When you start at run level 2, can you login as root and do  init 3
> > and get kdm up ?
> >
> >
> > Regards,
> >
> >
> >
> > Niall
> I have checked and it is set to run level 3,
> 
> Hummm

In that case have a look in the dir /etc/rc.d/rc3.d (or possibly
/etc/rc3.d - you get the idea) - there should be a number of sym links
to other files. You'll need to get one of these to start kdm (it's just
a shell script) and put it in /etc/rc.d/init.d (or whatever) and create
a symlink in rc3.d called S99kdm - it should start then. If the kdm
shell script is already there you just need to make the link.

RedHat choose to start prefdm (a link to your preferred display manager)
in the inittab itself by adding the line below to inittab - I believe
most of the other distros use the rc.d mechanism.
x:5:respawn:/etc/X11/prefdm -nodaemon

The kdm script could be as simple as:
#!/bin/sh

start(){
    echo "Starting kdm..."
    /usr/bin/kdm -nodaemon
}

case "$1" in
    start)
        start
        ;;
    *)
        echo "Usage: kdm start"
esac

exit 0

Cheers,
Dave
-- 
David Neary,               E-Mail dave.neary at palamon.ie
Palamon Technologies Ltd.  Phone +353-1-634-5059




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell