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

Re: Disabling scripts in init.d *permanently*? apt-get dist-upgrade re-enables them! (did RTFM about update-rc.d)



On 05 Nov 2005, Peter Valdemar Mørch wrote:
> Using Nessus as an example, I know how to disable it from starting
> automatically with:
> # update-rc.d -f nessusd remove
> 
> But then, two weeks down the road, a new version of nessus comes along,
> and after a dist-upgrade, the service is started automatically again,
> because the nessus package calls update-rc.d to have the nessusd daemon 
> start (as it should, I guess).
> 
> How do I configure a service to *NEVER EVER START* automatically? So
> this choice survives a "apt-get dist-upgrade"?
> 
[snip] 

I generally just add "exit 0" to the beginning of the script in
/etc/init.d. I don't know if it is the "right" thing to do but it's
simple and it works.

Anthony
-- 
Anthony Campbell - ac@acampbell.org.uk 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Reply to: