Olaf Leidinger wrote:
Hello List! On a file server I installed several debian (-based) distributions into an exported directory using debootstrap. These are used as root filesystems for diskless clients. To install new packages/updates I chroot into the directories of the corresponding distributions and run aptitude. The problem is, that every time I install the update of a service (e.g. cups), the service is (started in the chrooted environment, but I don't want to run any service in there. Is there a way to prevent dpkg from (re-)starting these services? Deleting them from the /etc/rc* directories is not an option, as they are needed by the clients. Thanks in advance!
policy-rc.d to your rescue. Read the man page of invoke-rc.d : "INIT SCRIPT POLICY" A simple /usr/sbin/policy-rc.d could look like this: # cat /usr/sbin/policy-rc.d #!/bin/sh echo "************************************" >&2 echo "All rc.d operations denied by policy" >&2 echo "************************************" >&2 exit 101 -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature