:: Re: [DNG] How to disable a service …
Forside
Slet denne besked
Besvar denne besked
Skribent: Vicente Vera
Dato:  
Til: Steve Litt
CC: dng
Emne: Re: [DNG] How to disable a service in sysvinit?
In order to disable a script the related symlinks should be deleted
from /etc/rcN.d. These commands should do the job:

invoke-rc.d SCRIPT stop # Stop it first
update-rc.d -f SCRIPT remove

To bring it back:

update-rc.d SCRIPT defaults

2017-07-04 20:39 GMT+00:00 Steve Litt <slitt@???>:
> Hi all,
>
> What's the official way to disable a service in sysvinit? In this case
> I want to disable sshd so I can put it in runit.
>
> I know I could rename /etc/rc5.d/S02sshd to zS02sshd, but I seem to
> remember there's some more official way to do it.
>
> Thanks,
>
> SteveT
>
> Steve Litt
> November 2016 featured book: Quit Joblessness: Start Your Own Business
> http://www.troubleshooters.com/startbiz
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng