Package Installation behavior
Sam Morris
sam at robots.org.uk
Mon Aug 13 18:08:07 BST 2007
On Sat, 11 Aug 2007 20:32:16 -0400, Bruno Clermont wrote:
> I'm building debian packages that run on Ubuntu and I need to test them.
> One great thing for that is debootstrap and then I install my packages
> into the freshly created virgin Ubuntu system.
>
> But one thing that bother me is that by default, when apt-get install a
> package that provide a service running constantly, such as apache2, the
> process is started RIGHT AFTER the package is installed.
>
> Is there a way to prevent a service to start (or restart) when a package
> is installed (or upgraded). Like debootstrap is doing.
>
> The main goal is to be able to debootstrap Ubuntu, then chroot into it
> and install package and be sure it won't mess the host.
I think the proper way to do this is to create a policy-rc.d script. See
the man page for invoke-rc.d and /usr/share/doc/sysv-rc/README.policy-
rc.d.gz for more information.
--
Sam Morris
http://robots.org.uk/
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
More information about the ubuntu-devel
mailing list