[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disable a service



On Sat, Apr 9, 2011 at 11:04 AM, Dan <ganchya@gmail.com> wrote:
>
> 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
>
> But then I used service manager from gnome to disable bluetooth. It
> disabled the service but it didn't delete the link. So I guess that
> there is a standard procedure to disable the service without deleting
> the link. Which is that procedure?

cp /etc/init.d/bluetooth /etc/insserv/override/
vi /etc/insserv/override/bluetooth
{change the "Default-Start" and "Default-Stop" runlevels}
insserv --remove bluetooth
insserv --default bluetooth


Reply to: