[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