Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: flo on July 27, 2002, 07:21:18 AM
-
Is there a way to remove any services (like lpd) started at boot ??
-
http://myezserver.com/downloads/mitel/contrib/e-smith-service-control/
-
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
-
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