Re: prevent dpkg from (re-)starting services
- From: Michael Biebl <biebl@xxxxxxxxxx>
- Date: Fri, 09 May 2008 02:58:49 +0200
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
- Follow-Ups:
- Re: prevent dpkg from (re-)starting services
- From: Michael Biebl
- Re: prevent dpkg from (re-)starting services
- References:
- prevent dpkg from (re-)starting services
- From: Olaf Leidinger
- prevent dpkg from (re-)starting services
- Prev by Date: Re: [OT] C++ programming: keeping count of data items read from file
- Next by Date: www.rchaker.com
- Previous by thread: prevent dpkg from (re-)starting services
- Next by thread: Re: prevent dpkg from (re-)starting services
- Index(es):
Relevant Pages
|