Koozali.org: home of the SME Server

Disabling services at boot-up

flo

Disabling services at boot-up
« on: July 27, 2002, 07:21:18 AM »
Is there a way to remove any services (like lpd) started at boot  ??


Aaron

Re: Disabling services at boot-up
« Reply #2 on: July 27, 2002, 10:33:12 PM »
flo wrote:
>
> Is there a way to remove any services (like lpd) started at
> boot  ??

You bet.

Get to the command line as root.

You want to look at the directory (I'm doign this from memory so your milage may vary)

/etc/rc.d/rc7.d

anything in this directory that starts with an "S" will start at boot time.

For example, S14LPD  would fire up the LPD server at boot time.

Simply delete the link that you would like to "not start up" at boot time. (Or perhaps move the link to /root or some other place so you could "restore" it easily if needed.)

Hope this helps.

-Aaron

Charlie Brady

Re: Disabling services at boot-up
« Reply #3 on: July 29, 2002, 10:47:39 PM »
Aaron wrote:

> You want to look at the directory (I'm doign this from memory
> so your milage may vary)
>
> /etc/rc.d/rc7.d
>
> anything in this directory that starts with an "S" will start
> at boot time.
>
> For example, S14LPD  would fire up the LPD server at boot time.
>
> Simply delete the link that you would like to "not start up"
> at boot time. (Or perhaps move the link to /root or some
> other place so you could "restore" it easily if needed.)

Better yet is to do:

/etc/rc.d/rc7.d/S*lpd stop
/sbin/e-smith/db configuration setprop lpd status disabled

You method will work for a while, but the services will come back when you upgrade or apply an update. OTOH, changing the configuration database will be preserved through upgrades. BTW, there's a service-control contrib which provides a manager interface to enabling/disabling services.

Charlie