Init scripts as conffiles

2011-02-15 Thread Tony Houghton
I was wondering, why are init scripts installed as conffiles? Is there a good reason other than that they're in /etc and nobody bothered to make an exception in debhelper? I would have thought it would be better to treat them as not to be modified by the user/admin; any init configuration should

Re: Init scripts as conffiles

2011-02-15 Thread The Fungi
On Tue, Feb 15, 2011 at 04:33:25PM +, Tony Houghton wrote: [...] I would have thought it would be better to treat them as not to be modified by the user/admin; any init configuration should be done via /etc/default. In years gone by, I've frequently had to manually adjust initscript

Re: Init scripts as conffiles

2011-02-15 Thread Tony Houghton
On Tue, 15 Feb 2011 17:05:41 + The Fungi fu...@yuggoth.org wrote: On Tue, Feb 15, 2011 at 04:33:25PM +, Tony Houghton wrote: [...] I would have thought it would be better to treat them as not to be modified by the user/admin; any init configuration should be done via /etc/default.

Re: Init scripts as conffiles

2011-02-15 Thread Michael Fladischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony Houghton, 2011-02-15 17:33: I was wondering, why are init scripts installed as conffiles? Debain switched to dependency-based boot with Squeeze and those dependencies are controlled by the LSB headers inside each init script. On the majority

Re: Init scripts as conffiles

2011-02-15 Thread The Fungi
On Tue, Feb 15, 2011 at 05:27:39PM +, Tony Houghton wrote: I'd consider packages which require editing of the init script instead of using /etc/default or similar to be badly designed at best. I know fixing the mass of existing packages would be too big a job, but I thought it might be

Re: Init scripts as conffiles

2011-02-15 Thread Russ Allbery
Tony Houghton h...@realh.co.uk writes: I'd consider packages which require editing of the init script instead of using /etc/default or similar to be badly designed at best. I know fixing the mass of existing packages would be too big a job, but I thought it might be possible to provide a new

Re: Init scripts as conffiles

2011-02-15 Thread Jesús M. Navarro
Hi, Michael: On Tuesday 15 February 2011 18:37:38 Michael Fladischer wrote: Tony Houghton, 2011-02-15 17:33: I was wondering, why are init scripts installed as conffiles? Debain switched to dependency-based boot with Squeeze and those dependencies are controlled by the LSB headers inside

Re: Init scripts as conffiles

2011-02-15 Thread Bernhard R. Link
* Jesús M. Navarro jesus.nava...@undominio.net [110215 20:40]: Anyway, my position would be that init script shouldn't have to be config files. For this to be true these steps should need to be worked on: 1) See for boot dependencies not being stablished in the init script itself (a sourced

Re: Init scripts as conffiles

2011-02-15 Thread Stefan Lippers-Hollmann
Hi On Tuesday 15 February 2011, Jesús M. Navarro wrote: Hi, Michael: On Tuesday 15 February 2011 18:37:38 Michael Fladischer wrote: Tony Houghton, 2011-02-15 17:33: I was wondering, why are init scripts installed as conffiles? Debain switched to dependency-based boot with Squeeze

Re: Init scripts as conffiles

2011-02-15 Thread Don Armstrong
On Tue, 15 Feb 2011, Tony Houghton wrote: I was wondering, why are init scripts installed as conffiles? Is there a good reason other than that they're in /etc and nobody bothered to make an exception in debhelper? Anything that is in /etc should be editable by the admin, and changes respected

Re: Init scripts as conffiles

2011-02-15 Thread Tony Houghton
On Tue, 15 Feb 2011 16:33:25 + Tony Houghton h...@realh.co.uk wrote: I was wondering, why are init scripts installed as conffiles? Is there a good reason other than that they're in /etc and nobody bothered to make an exception in debhelper? I would have thought it would be better

Re: Init scripts as conffiles

2011-02-15 Thread Boyd Stephen Smith Jr.
On Tuesday 15 February 2011 15:16:27 Tony Houghton wrote: How about I file a wishlist bug for dpkg and apt for an option similar to purge but which only purges files which haven't been altered from the package's default? From what I understand, neither APT nor dpkg know if a file has been

Re: Init scripts as conffiles

2011-02-15 Thread Russ Allbery
Jesús M. Navarro jesus.nava...@undominio.net writes: Anyway, my position would be that init script shouldn't have to be config files. For this to be true these steps should need to be worked on: [...] Given that nearly all of the Linux distribution work on init systems right now is towards

Re: Init scripts as conffiles

2011-02-15 Thread Sven Joachim
On 2011-02-15 22:24 +0100, Boyd Stephen Smith Jr. wrote: On Tuesday 15 February 2011 15:16:27 Tony Houghton wrote: How about I file a wishlist bug for dpkg and apt for an option similar to purge but which only purges files which haven't been altered from the package's default? From what I

Re: Init scripts as conffiles

2011-02-15 Thread Don Armstrong
On Tue, 15 Feb 2011, Tony Houghton wrote: I don't like about it is that init scripts get left behind when uninstalling packages. Configuration files are always left behind unless you purge a package. It wouldn't be quite so bad if packages called update-rc.d disable on their init scripts

Re: Init scripts as conffiles

2011-02-15 Thread Matt Zagrabelny
On Tue, Feb 15, 2011 at 4:06 PM, Don Armstrong d...@debian.org wrote: On Tue, 15 Feb 2011, Tony Houghton wrote: I don't like about it is that init scripts get left behind when uninstalling packages. Configuration files are always left behind unless you purge a package. Sure. That doesn't

Re: Init scripts as conffiles

2011-02-15 Thread Tony Houghton
On Tue, 15 Feb 2011 14:06:20 -0800 Don Armstrong d...@debian.org wrote: On Tue, 15 Feb 2011, Tony Houghton wrote: It wouldn't be quite so bad if packages called update-rc.d disable on their init scripts when removed so that init doesn't read the disused scripts, but AFAICT from the Policy

Re: Init scripts as conffiles

2011-02-15 Thread Tony Houghton
On Tue, 15 Feb 2011 22:50:53 +0100 Sven Joachim svenj...@gmx.de wrote: On 2011-02-15 22:24 +0100, Boyd Stephen Smith Jr. wrote: On Tuesday 15 February 2011 15:16:27 Tony Houghton wrote: How about I file a wishlist bug for dpkg and apt for an option similar to purge but which only purges

Re: Init scripts as conffiles

2011-02-15 Thread Joey Hess
Matt Zagrabelny wrote: Sure. That doesn't make it correct, optimal, or the best option, just how things have always been done. I understand the difference between remove and purge and the reason to use both, but removing unmodified conf files seems like a win to me. Keeps the clutter down.

Re: Init scripts as conffiles

2011-02-15 Thread Matt Zagrabelny
On Tue, Feb 15, 2011 at 4:39 PM, Joey Hess jo...@debian.org wrote: Matt Zagrabelny wrote: Sure. That doesn't make it correct, optimal, or the best option, just how things have always been done. I understand the difference between remove and purge and the reason to use both, but removing

Re: Init scripts as conffiles

2011-02-15 Thread Boyd Stephen Smith Jr.
On Tuesday 15 February 2011 16:44:49 Matt Zagrabelny wrote: On Tue, Feb 15, 2011 at 4:39 PM, Joey Hess jo...@debian.org wrote: Matt Zagrabelny wrote: I understand the difference between remove and purge and the reason to use both, but removing unmodified conf files seems like a win to me.

Re: Init scripts as conffiles

2011-02-15 Thread Tony Houghton
On Tue, 15 Feb 2011 17:04:10 -0600 Boyd Stephen Smith Jr. b...@iguanasuicide.net wrote: On Tuesday 15 February 2011 16:44:49 Matt Zagrabelny wrote: On Tue, Feb 15, 2011 at 4:39 PM, Joey Hess jo...@debian.org wrote: Matt Zagrabelny wrote: I understand the difference between remove and