Re: sarge apt and init daemons

From: David Clymer (david_at_zettazebra.com)
Date: 04/30/05

  • Next message: Ritesh Raj Sarraf: "Re: Segmentation fault"
    To: debian-user@lists.debian.org
    Date: Sat, 30 Apr 2005 10:28:36 -0400
    
    

    On Sat, 2005-04-30 at 10:18 -0400, Phil Dyer wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Maybe I'm missing something, but I've noticed an odd behavior with apt.
    > If I install a daemon, say freeradius, and decide I don't want it to run
    > for whatever reason - I do an update-rc.d -f freeradius remove. Also of
    > course /etc/init.d/freeradius stop.
    >
    > I don't want to uninstall it, I just don't want it to run right now. But
    > after an apt-get upgrade, if freeradius is updated it will start it
    > during the setup process.
    >
    > Is this the right behavior? Am I missing something?

    It's the right behavior, IMHO.

    The debian post install script probably doest go through the rc.*
    directories looking for runlevel entries since these are all just
    symlinks to a script in /etc/init.d/. All that it probably checks for is
    that the /etc/init.d/<whatever> script exists and is executable. Then,
    on the assumption that its generally a good idea to stop and start
    daemons when upgrading them, it does so.

    If you want to keep updates from starting the daemon, just chmod 644 it.

    -davidc

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Ritesh Raj Sarraf: "Re: Segmentation fault"

    Relevant Pages

    • Re: Confused about init scripts expectations
      ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... I attempt to start the daemon using the services configuration GUI ... figure is that the EOF signal is not being received by the program. ...
      (Fedora)
    • Debian PHP jabber client deamon
      ... to prevent PHP stopping the script. ... // disconnect from the Jabber server ... Here's the daemon script for running it in Debian. ... # Gracefully exit if the package has been removed. ...
      (comp.lang.php)
    • Re: Confused about init scripts expectations
      ... I am developing a daemon application to handle datalogger ... I have developed the init script that is ... on the command line to start and stop the daemon process. ... I attempt to start the daemon using the services configuration GUI ...
      (Fedora)
    • Re: rc scripts
      ... startup script so that it parses rc.conf for variables. ... load_rc_config openntpd ... resort to running 'ntpd -gq' at system startup, ... ntpd daemon after the fact. ...
      (freebsd-questions)
    • [HPADM] Re: Startup Script Question
      ... Subject: Startup Script Question ... I have the following line for the start option to launch ... > boot, the startup script launches the daemon, but then the ...
      (HP-UX-Admin)