Re: benefits of invoke-rc.d (was: Re: unsubscribe)

From: Henrique de Moraes Holschuh (hmh_at_debian.org)
Date: 04/05/05

  • Next message: Clive Menzies: "Re: Debian sarge base + xfce4 desktop"
    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
    

  • Next message: Clive Menzies: "Re: Debian sarge base + xfce4 desktop"

    Relevant Pages

    • [Summary] puzzle with cold mirror script
      ... puzzle with cold mirror script ... DUMP: Date of last level 0 dump: the epoch ... all the disk information and a listing of the script follows. ... /export/home/chris# format ...
      (SunManagers)
    • Re: to lvm or not to lvm?
      ... A typo in a script can do more harm in 20 ... with disk space. ... As long as it's not possible for a growing partition to take space away from another partition, I can't see how this would do anything but give you more time to react, you run your messed up script that starts pushing the contents of /dev/zero into a text file and eating harddrive space, if your sitting next to the machine you see the HDD lights come on and hear the seeking, if your remote the first clue you get is an email or SMS saying /blah has been automatically grown by 5GB because it was more than 85% full, you can kill your script, delete the text file, reduce the partition again and nothing crashed, if all it had done was email you a message pointing out /blah was running out of space, and /blah was also required by some other vital process that ran out of space and crashed before you could kill the script, you'd wish you had auto growth. ... The LV extending commands were never ...
      (Debian-User)
    • Re: FGC to Grapheus
      ... probable/unsure sign's signifiance from sign's (probable/unsure, ... Phaistos Disk is NOT related in one way or the other to the LinearA/ ... Civilization, Greek yes, but NOT "Mycenaean"... ... "Cultures" (in particular Script) were somewhat different... ...
      (sci.lang)
    • ufsdump/ufsrestore error
      ... I am using ufsdump and ufsrestore in a script to copy one disk to ... Warning: `.' ... missing from directory ./sadm/pkg/SUNWcsr/save ...
      (SunManagers)
    • puzzle with cold mirror script
      ... This is the mirror script from BigAdmin modified just ... DUMP: Date of last level 0 dump: the epoch ... all the disk information and a listing of the script follows. ... /export/home/chris# format ...
      (SunManagers)