Re: benefits of invoke-rc.d (was: Re: unsubscribe)
From: Henrique de Moraes Holschuh (hmh_at_debian.org)
Date: 04/05/05
- Previous message: Bob Alexander: "Reference on shell scripts"
- In reply to: David Landgren: "benefits of invoke-rc.d (was: Re: unsubscribe)"
- Next in thread: Jon Dowland: "Re: benefits of invoke-rc.d"
- Reply: Jon Dowland: "Re: benefits of invoke-rc.d"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 5 Apr 2005 11:34:02 -0300 To: David Landgren <david@landgren.net>
On Tue, 05 Apr 2005, David Landgren wrote:
> >>What is the advantage of using invoke-rc.d as opposed to using the
> >>/etc/init.d/SCRIPT PARAM as I always did ?
None, UNLESS you are doing it from a script or doing something unusual. I
wrote invoke-rc.d to get the package maintainer scripts (the stuff dpkg runs
when installing, updating or removing packages) to behave. Nothing else.
> >You know, I'm not entirely sure what the reasoning is. The invoke-rc.d
> >manpage says "All access to the init scripts by Debian packages'
> >maintainer scripts should be done through invoke-rc.d." But I guess that
> >doesn't really apply to end-users.
Exactly. End users can do whatever they want to :-)
> - A single entry point to make sure that vital environment variables
> are sane. Could look elsewhere than /etc/init.d for scripts. (e.g.
> /usr/local/etc to make FreeBSD'ers feel at home).
That's mostly correct. invoke-rc.d is supposed to work ONLY with sysv-like
init script systems, that means /etc/init.d/<script> must always work, and
work correctly at that.
> - invoke-rc.d could be aliased to 'service' (e.g. to make redhatters
> feel at home).
I'd rather someone wrote a service wrapper that actually behaves just like
RedHat's instead...
-- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Bob Alexander: "Reference on shell scripts"
- In reply to: David Landgren: "benefits of invoke-rc.d (was: Re: unsubscribe)"
- Next in thread: Jon Dowland: "Re: benefits of invoke-rc.d"
- Reply: Jon Dowland: "Re: benefits of invoke-rc.d"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|