Re: /etc/init.d/ - add/remove services

From: Thomas Hood (jdthood_at_yahoo.co.uk)
Date: 01/31/04

  • Next message: Arnt Karlsen: "Re: Isolationism is history."
    To: debian-user@lists.debian.org
    Date: Sat, 31 Jan 2004 22:10:46 +0100
    
    

    Note that the expectation of the System V init system is
    that every service have either an S or a K symlink in each
    runlevel. If there is no symlink for a service in a particular
    runlevel then the behavior of sysv's invoke-rc.d is undefined
    for that service in that runlevel. Methods of shutting off
    services must take that into account.

    Suppose you have service foo that is S20 in runlevel 2 and
    you want to shut it off. You should do something like:

        /etc/rc2.d/$ mv S20foo K80foo_originallyS20

    As someone has already pointed out, update-rc.d is intended for
    use by maintainer scripts. It allows maintainer scripts to
    work independently of which init system is in use, whether it
    is the System V init system, file-rc or some other. The
    local administrator need not use update-rc.d to change sysv
    symlinks.

    -- 
    Thomas Hood <jdthood@yahoo.co.uk>
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Arnt Karlsen: "Re: Isolationism is history."

    Relevant Pages

    • Re: /etc/init.d/ - add/remove services
      ... > Note that the expectation of the System V init system is ... If there is no symlink for a service in a particular ... > runlevel then the behavior of sysv's invoke-rc.d is undefined ... as a foo script even though it links to foo. ...
      (Debian-User)
    • Re: /etc/init.d/ - add/remove services
      ... If there is no symlink for a service in a particular ... >runlevel then the behavior of sysv's invoke-rc.d is undefined ... It allows maintainer scripts to ... >work independently of which init system is in use, ...
      (Debian-User)
    • Re: Help locating an rpm for libexpat.so.0 ???
      ... I've downloaded the "appropriate" ATI driver installation ... for it which I have tried various symlink tricks but cannot get by it. ... system is automatically goes to runlevel 5 even though I've defined it as ... "Observation statements and statements of experimental ...
      (alt.os.linux.suse)
    • Help locating an rpm for libexpat.so.0 ???
      ... I've downloaded the "appropriate" ATI driver installation ... for it which I have tried various symlink tricks but cannot get by it. ... download the required library? ... system is automatically goes to runlevel 5 even though I've defined it as ...
      (alt.os.linux.suse)
    • Re: Linux service query
      ... > check for the presence of this file and if present don't run. ... You already know that the scripts that should be run for a runlevel are ... symlink if invoked from a runlevel change or if invoked by hand. ...
      (comp.os.linux)