Re: Prevent aptitude from starting services



On 2008-09-23 16:37 +0200, Urs Thuermann wrote:

Is it possible to prevent aptitude from automatically running services
after install? That is, when I install some daemon or some other
package with a start script in /etc/init.d, e.g. bind or ferm, I don't
want that init script to be executed. This is annoying when services
are started before I have configured them, and also if I build a
system with debootstrap, then chroot into the new system to install
some further packages and then services are run or netfilter rules are
changed on the build system.

Yes, that's possible. Create a script /usr/sbin/policy-rc.d with a
single line containing "exit 101" and no services will be started at
package installation time¹. See
/usr/share/doc/sysv-rc/README.{policy,invoke}-rc.d.gz.

Looking through the man page of aptitude I haven't found an option to
do this.

Because that isn't really related to aptitude, it doesn't matter how you
install your package.

Sven


¹ Well, at least if the package maintainer follows the rules and uses
invoke-rc.d instead of executing the init script directly. Doing the
latter is a serious bug, though.


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



Relevant Pages

  • Errors applying kernel patch 118833-36
    ... install of Solaris 10 11/06. ... However, once the package list is done, I see a worrisome message: ... Below is the complete console output of the patch run. ... Changes for package SUNWnfsskr will not be applied to the system. ...
    (SunManagers)
  • Re: KB976569 KB979909 KB979906 fail to install
    ... It is the Fix it 50123 part of the package which is failing. ... A script required for this install to complete ...
    (microsoft.public.windowsupdate)
  • Re: [opensuse] Local cache of updates, installed programs in openSUSE
    ... don't have the same package config, I created a "Generic" openSuSE repository ... script to separate all the files by architecture and then upload to the server ... server instead of from the internet. ... but they are a hell of a lot slower to install. ...
    (SuSE)
  • Re: SmartMenu - was: VRPC on a USB pen
    ... in applications distributed via package systems which are supposed to ... having to get the user to install it, or they could present the user ... Haskell compiler and associated tools (collectively referred to on ... haskell.org as the 'platform' package). ...
    (comp.sys.acorn.misc)
  • Re: Stronghelp - can I change location set by Packman?
    ... it was needed to install a package though. ... RISC OS desktop. ... Simpler for the newbies arriving from Linux, ...
    (comp.sys.acorn.apps)