PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > prevent dpkg from (re-)starting services
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

prevent dpkg from (re-)starting services

Réponse
 
LinkBack Outils de la discussion
Vieux 08/05/2008, 21h20   #1
Olaf Leidinger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut prevent dpkg from (re-)starting services

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) or a new one, 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!

Olaf Leidinger


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFII1LH4Yz1Ukx83/kRArqBAJ987Oo2TQVpxVg6YNmc0vOXs/u1xQCgidkd
2CcbtuOYfIcqtOiXOTlRkOY=
=NcM/
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 12/05/2008, 12h10   #2
Mirko Parthey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: prevent dpkg from (re-)starting services

On Thu, May 08, 2008 at 09:21:35PM +0200, Olaf Leidinger wrote:
> 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) or a new one, 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.


Yes, it is possible to conditionally prevent services from
being (re-)started, with the init script policy mechanism.
It's explained in the invoke-rc.d manpage and in the file
/usr/share/doc/sysv-rc/README.policy-rc.d.gz

For a local chroot which is not shared, I use a simple
/usr/sbin/policy-rc.d script just containing "exit 101",
but the mechanism should also be flexible enough for your needs.

Best regards,
Mirko


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h14.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13107 seconds with 10 queries