I always use a utility called chkconfig. It allows you to specify a service, a 
runlevel, and setups up all of the rc links. Nice. Forexmaple:

chkconfig --level 345 smb on 

would setup samba to start on runlevel 3, 4, or 5. I know that this is easy to do, but 
it cuts down on typing and mistakes...



-----Original Message-----
From: Cory Petkovsek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [Eug-lug]X on startup


On Mon, Mar 17, 2003 at 09:14:15PM -0800, Rob Hudson wrote:
> Mine shows:
> id:2:initdefault:
> 
> But that triggered my memory.  I looked in /etc/rc2.d and /etc/rc3.d and
> they were the same.  But I noticed in there gdm and xdm so I removed the
> symlinks to their /etc/init.d files.  That should do the trick.
> 
> -Rob
When I want to disable a service I just rename the /etc/init.d/service to
/etc/init.d/no.service.  The symlinks in the runlevel directories are
broken, but it is easier to rename the file back rather than reinstate the
symlinks.  You could also remove xdm, but you have to force the
dependencies.  When i upgrade <service> it sometimes complains that the
original /etc/init.d/service file is missing and always replaces it with the
upgraded version.

> > Whip open /etc/inittab, and find a line similar to this:
> > id:3:initdefault:
> > 
> > Yours will probably have 5 instead of three (it depends on the distro), but text 
> > boot on most systems is three, so make the line like this:
> > id:5:initdefault:

As for this stuff, runlevel 3 is console and runlevel 5 is xdm on redhat
based systems.  Runlevel 2 is default on debian, and 3-5 are available for
the user or other derivative distros to customize.  Bob, where does it say
that 3/5 is a standard?

Cory
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to