Re: Standard way to disable services

2008-08-06 Thread Harald Braumann
On Thu, 31 Jul 2008 10:56:07 -0400 Guido Günther [EMAIL PROTECTED] wrote: We might not want to use policy-rc.d as is in sysvinit of filerc during startup but we might consider moving these policy decisions no I don't want this daemon at startup, yes I want that daemon reloaded after resume

Re: Standard way to disable services

2008-07-31 Thread Guido Günther
On Mon, Jul 28, 2008 at 10:58:26PM -0300, Henrique de Moraes Holschuh wrote: On Tue, 29 Jul 2008, Franklin PIAT wrote: I haven't investigated it, but I wonder if it isn't the sane way to have complex dependency (à  la LSB) stored in one place, and system admin preference in another place.

Re: Standard way to disable services

2008-07-31 Thread Henrique de Moraes Holschuh
On Thu, 31 Jul 2008, Guido Günther wrote: Why don't we let sysv-init (at least optionally) use policy-rc.d? Because that would make policy-rc.d and invoke-rc.d useless crap. The DESIGN behind invoke-rc.d and policy-rc.d is to help MAINTAINER SCRIPTS don't screw up when

Re: Standard way to disable services

2008-07-31 Thread Guido Günther
On Thu, Jul 31, 2008 at 11:02:39AM -0300, Henrique de Moraes Holschuh wrote: On Thu, 31 Jul 2008, Guido Günther wrote: Why don't we let sysv-init (at least optionally) use policy-rc.d? Because that would make policy-rc.d and invoke-rc.d useless crap. The DESIGN behind invoke-rc.d and

Re: Standard way to disable services

2008-07-31 Thread Henrique de Moraes Holschuh
On Thu, 31 Jul 2008, Guido Günther wrote: The DESIGN behind invoke-rc.d and policy-rc.d is to help MAINTAINER SCRIPTS don't screw up when restarting/starting/stopping services automatically, either in the normal system context, or inside special chroots. They are NOT, and I repeat:

Re: Standard way to disable services

2008-07-30 Thread Marc Haber
On Sat, 26 Jul 2008 17:42:35 +0200, Nico Golde [EMAIL PROTECTED] wrote: There is also the option to install file-rc and just edit /etc/runlevel.conf with an editor if you don't want to cope with the symlink hell. That's how I have been doing things for years, but that's going to be incompatible

Re: Standard way to disable services

2008-07-30 Thread Harald Braumann
On Wed, 30 Jul 2008 08:24:46 +0200 Marc Haber [EMAIL PROTECTED] wrote: On Sat, 26 Jul 2008 17:42:35 +0200, Nico Golde [EMAIL PROTECTED] wrote: There is also the option to install file-rc and just edit /etc/runlevel.conf with an editor if you don't want to cope with the symlink hell.

Re: Standard way to disable services

2008-07-30 Thread Harald Braumann
On Sun, 27 Jul 2008 15:21:44 +0800 Lightning [EMAIL PROTECTED] wrote: you should use the rcconf to disable the services apt-get install rcconf But that surely isn't the standard way, 'cause otherwise the package wouldn't be priority optional. Thanks for all the suggestions, I know that

Re: Standard way to disable services

2008-07-29 Thread Steve Greenland
On 28-Jul-08, 20:58 (CDT), Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: Well, policy-rc.d is obeyed by invoke-rc.d, and therefore, by all maintainer scripts. But manually trying to run the initscript will still work. Which is a *good* thing, which is why I detest the growing habit

Re: Standard way to disable services

2008-07-28 Thread Franklin PIAT
On Sat, 2008-07-26 at 10:40 -0700, Steve Langasek wrote: On Sat, Jul 26, 2008 at 07:27:27PM +0200, Luk Claes wrote: Steve Langasek wrote: On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 a  13:18 +0200, Harald Braumann a ecrit : quite often I

Re: Standard way to disable services

2008-07-28 Thread Henrique de Moraes Holschuh
On Tue, 29 Jul 2008, Franklin PIAT wrote: I haven't investigated it, but I wonder if it isn't the sane way to have complex dependency (à  la LSB) stored in one place, and system admin preference in another place. Well, policy-rc.d is obeyed by invoke-rc.d, and therefore, by all maintainer

Re: Standard way to disable services

2008-07-27 Thread Lightning
you should use the rcconf to disable the services apt-get install rcconf 在 2008-07-26六的 13:18 +0200,Harald Braumann写道: Hi, quite often I just want to disable a service in /etc/init.d. But there doesn't seem to be a standard way to do that. Many services have a file in /etc/defaults,

Re: Standard way to disable services

2008-07-27 Thread Harald Braumann
On Sat, 26 Jul 2008 19:27:27 +0200 Luk Claes [EMAIL PROTECTED] wrote: Steve Langasek wrote: On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a écrit : quite often I just want to disable a service in /etc/init.d. But

Re: Standard way to disable services

2008-07-27 Thread Osamu Aoki
On Sun, Jul 27, 2008 at 01:21:45PM +0200, Harald Braumann wrote: On Sat, 26 Jul 2008 19:27:27 +0200 Luk Claes [EMAIL PROTECTED] wrote: Steve Langasek wrote: On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a

Re: Standard way to disable services

2008-07-26 Thread Nico Golde
Hi Hans, * Hans-J. Ullrich [EMAIL PROTECTED] [2008-07-26 17:17]: Am Samstag, 26. Juli 2008 schrieb Harald Braumann: [...] sysv-rc-conf would be one option, in which case it would have to have priority required. The other option being removing the executable bit. I would be content with

Re: Standard way to disable services

2008-07-26 Thread Steve Langasek
On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a écrit : quite often I just want to disable a service in /etc/init.d. But there doesn't seem to be a standard way to do that. The standard way is to remove the

Re: Standard way to disable services

2008-07-26 Thread Luk Claes
Steve Langasek wrote: On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a écrit : quite often I just want to disable a service in /etc/init.d. But there doesn't seem to be a standard way to do that. The standard way is

Re: Standard way to disable services

2008-07-26 Thread Steve Langasek
On Sat, Jul 26, 2008 at 07:27:27PM +0200, Luk Claes wrote: Steve Langasek wrote: On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote: Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a écrit : quite often I just want to disable a service in /etc/init.d. But there

Re: Standard way to disable services

2008-07-26 Thread Florian Weimer
* Harald Braumann: quite often I just want to disable a service in /etc/init.d. But there doesn't seem to be a standard way to do that. I usually put exit 0 near the top of the init script. The symlink stuff is far too brittle. I haven't tried Nico's suggestion to use file-rc; if it works,