Re: Standard way to disable services

2008-08-08 Thread Guido Günther
On Wed, Aug 06, 2008 at 10:32:14AM +0200, Harald Braumann wrote: > 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 d

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 res

Re: Standard way to disable services

2008-08-02 Thread Petter Reinholdtsen
[Henrique de Moraes Holschuh] > sysv-init's way to do what you want is to move the links from S to > K. That's about the beggining and end of the issue. If insserv is > breaking this, it means you have a missing (important) feature in > insserv that needs fixing. But that doesn't have anything

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 rep

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 an

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 restarting/starting/stopp

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 pl

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-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 hel

Re: Standard way to disable services

2008-07-29 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 incompat

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 h

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 sc

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 : > > >>>

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 Br

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/i

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-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

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 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 stan

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 sy

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

Re: Standard way to disable services

2008-07-26 Thread Hans-J. Ullrich
Am Samstag, 26. Juli 2008 schrieb 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, where the service can be > disabled. In that case, however, the service

Re: Standard way to disable services

2008-07-26 Thread Josselin Mouette
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 symlinks in /etc/rc?.d > In http://bugs.debian.org/cgi-bin/bugreport.cgi?bu

Re: Standard way to disable services

2008-07-26 Thread Enrico Zini
On Sat, Jul 26, 2008 at 01:18:54PM +0200, Harald Braumann wrote: > 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. [...] Here's what I found last time I looked into it: http://www.enricozini.org/2008/tips/dont-start-mysql-by-

Standard way to disable services

2008-07-26 Thread 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, where the service can be disabled. In that case, however, the service also can't be started manually. In http://bugs.debian.org/cgi