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

Re: [Bug#137321] executing of conffiles (init scripts) in postinst



On Fri, Mar 08, 2002 at 11:49:04PM +0100, Eduard Bloch wrote:
> > script and making it invalid POSIX sh is unsupported, and changing a 
> > conffile so that it's unusable by a program that reads it is 
> If I remove the execute bit from the script, 

Who says you can do such a thing? The proper way of disabling an init
script is to put "exit 0" in it somewhere near the top. Nothing else is
guaranteed to work reliably. Not changing permissions, not rm'ing it,
even getting rid of the rc*.d/ symlinks (or file-rc equivalent).

This is inelegant, yes, and the solution to that is the invoke-rc.d stuff
we'll be rolling out next release.

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
We came. We Saw. We Conferenced. http://linux.conf.au/

  ``Debian: giving you the power to shoot yourself in each 
       toe individually.'' -- with kudos to Greg Lehey



Reply to: