[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pre-Depends: init-system-helpers



Am 2014-11-17 18:07, schrieb Anthony Towns:
BTW, it occured to me that it seems like a wart that update-rc.d doesn't respect policy-rc.d -- as it stands, policy-rc.d can prevent a service from (re)starting during install/upgrade, but it'll still start on the
next boot. Is that just something that never got thought of / done,
or does it actually make sense?

From a purely user-centric perspective: I would like to keep it that
way. I have a couple of scripts lying around that automatically create
LXC containers: debootstrap, install configuration management system,
use that to change configuration and fetch list of packages to be
installed and then use aptitude to install that list of packages. During
the runtime of that script, I drop in a /usr/sbin/policy-rc.d in the
target directory that just contains 'exit 101' (in addition to a
shebang) in order to make sure that during the installation no system
service gets started (this is especially the case under wheezy with
sysvinit, I haven't tested this yet with jessie and systemd).

But once the container is built properly, and I want to boot it, I
actually DO want it to be the case that the services installed in those
containers actually start. For example, if the list of packages for that
specific container contains Apache, I want httpd to start once I boot
the container.

So to me, the current behavior of policy-rc.d is _immensely_ useful.

Christian


Reply to: