From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1582 Path: news.gmane.org!not-for-mail From: Adam Megacz Newsgroups: gmane.comp.sysutils.supervision.general Subject: inhibiting /etc/init.d/foo on debian? Date: Fri, 28 Dec 2007 10:09:07 -0800 Organization: Myself Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198869914 2105 80.91.229.12 (28 Dec 2007 19:25:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2007 19:25:14 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1817-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 28 20:25:27 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1J8Kpj-0007ns-71 for gcsg-supervision@gmane.org; Fri, 28 Dec 2007 20:25:27 +0100 Original-Received: (qmail 22924 invoked by uid 76); 28 Dec 2007 19:25:12 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 22918 invoked from network); 28 Dec 2007 19:25:12 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: chaitin.megacz.com X-Home-Page: http://www.megacz.com/ User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:wPbewunMwE/t09+aVE7tnNiMgsc= Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1582 Archived-At: Hello, On a bunch of machines I use runit for whatever services I care most about, and leave /sbin/init running to handle the big piles of miscellaneous stuff that debian keeps in /etc/init.d/ So far I've been inhibiting the runit-ified services from starting using something like this: update-rc.d -f $1 remove update-rc.d -f $1 stop 99 0 1 2 3 4 5 6 S . The only problem here is that many package install/uninstall scripts explicitly invoke their own /etc/init.d scripts as part of the prerm/postinst. Is there any way to stop the scripts from executing in these situations, or (even better) make them perform the appropriate "sv {up|down}" action? In particular, this causes rather severe problems for some daemons that do not cope well with having two copies of themselves running at the same time. Thanks! - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380