From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1743 Path: news.gmane.org!not-for-mail From: Adam Megacz Newsgroups: gmane.comp.sysutils.supervision.general Subject: debian *-run packages Date: Mon, 21 Apr 2008 12:57:36 -0700 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 1208807891 26048 80.91.229.12 (21 Apr 2008 19:58:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2008 19:58:11 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1978-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Apr 21 21:58:46 2008 connect(): Connection refused 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 1Jo29t-0007vb-Q1 for gcsg-supervision@gmane.org; Mon, 21 Apr 2008 21:58:37 +0200 Original-Received: (qmail 13802 invoked by uid 76); 21 Apr 2008 19:58:17 -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 13796 invoked from network); 21 Apr 2008 19:58:17 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gentzen.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:WDuIiamRn4GetHSQPltBnZpb5QQ= Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1743 Archived-At: I noticed that some packages (such as socklog) have a *-run variant (ie socklog-run) holding their runit scripts. However, all of the examples I've found so far are packages that don't already have legacy /etc/init.d/ scripts. Lately I've been using the following commands manually to make many of debian's packages (which have /etc/init.d/ scripts) run under supervision using these commands: DAEMON=xxx dpkg-divert --quiet --rename /etc/init.d/$DAEMON ln -s /usr/bin/sv /etc/init.d/$DAEMON It occurred to me that, given a library of run-scripts for a bunch of debian packages, one could easily automatically generate a debian *-run package for each script which contained the run-script, a postinst with the above lines, and a prerm that undoes them. The $A-run package would depend on $A, ensuring that uninstalling $A would first uninstall $A-run. Anyways, I was thinking of throwing together a script to crank out 77 packages from this webpage: http://smarden.org/runit/runscripts.html Does this sound like a sensible idea, or is there some better plan for runit-izing debian -- in the very near future -- in the works? - a