Re: Disable a service
On Sat, 2011-04-09 at 11:05 -1000, Joel Roth wrote:
> On Sat, Apr 09, 2011 at 11:04:52AM -0400, Dan wrote:
> > Hi,
> > I would like to know which is the standard way to disable services. I
> > thought that the standard way is just to delete the link of the
> > service from rc*.d
> >
> > For example to disable bluetooth I would just delete the link
> > /etc/rc3.d/S20bluetooth that points to ../init.d/bluetooth
>
> Some may disagree (and I've made this point before)
> a standard way to prevent a script from
> executing in Unixlike system is to set the
> permissions.
>
> chmod a-x /etc/init.d/bluetooth
>
<snip>
I like that way but what happens when it is updated? It also generates
errors on boot and shutdown but those can be ignored. Thanks - John
Reply to: