Initialization Scripts

Derek Broughton news at pointerstop.ca
Mon Jun 11 16:37:30 UTC 2007


D. Michael McIntyre wrote:

> On Sunday 10 June 2007, Larry Hartman wrote:
>> 1.  If I remove this script will that stop the boot process from loading
>> apache when it is no longer there?
> 
> My usual ugly hack way to kill something like this is to
> 
> sudo chmod -x /etc/init.d/foo
> 
> If it's not executable, it stops running.  That's not the Correct
> Debian/Ubuntu Way(tm) but it works.  Sometimes you have to just hit
> something with a big hammer to make it shut up.

Yeah, that works.

The "Correct Debian/Ubuntu Way (tm)" involves use of update-rc.d to remove
links.  _Either_ 

# aptitude purge apache apache-common

should execute that (ie, if when you removed it, you used "remove" rather
than "purge"), or there's a bug in the postrm process, which will
(possibly) one day get fixed.  Of course, if there _is_ a bug, filing a bug
report will help that eventuality come to pass :-)
-- 
derek





More information about the kubuntu-users mailing list