From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1351 Path: news.gmane.org!not-for-mail From: Toni Mueller Newsgroups: gmane.comp.sysutils.supervision.general Subject: daemon under runit? Date: Tue, 5 Dec 2006 23:34:42 +0100 Message-ID: <20061205223442.10292.qmail@oak.oeko.net> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165394189 7284 80.91.229.10 (6 Dec 2006 08:36:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2006 08:36:29 +0000 (UTC) Cc: support@oeko.net Original-X-From: supervision-return-1587-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Dec 06 09:36:27 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by dough.gmane.org with smtp (Exim 4.50) id 1GrsGQ-00065D-9P for gcsg-supervision@gmane.org; Wed, 06 Dec 2006 09:36:26 +0100 Original-Received: (qmail 19642 invoked by uid 76); 6 Dec 2006 08:36:46 -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 23181 invoked from network); 5 Dec 2006 22:35:05 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline X-Info: Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. User-Agent: Mutt/1.5.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1351 Archived-At: Hello, I'm struggling with a program that, in many cases, forks to become a daemon, that I'd like to run under runit (1.7.1). So far, I tried to start the program in the run script, then wait in a 'finish' script for it, and also have a control/t script to kill it if someone says something like "sv down service". Unfortunately, in most cases, this does not seem to work - the control/t script is not accessed when I issue 'sv down service' (as "ls -lta" shows). One of the problems is that the file supervise/pid contains the pid of the finish script in case the program forked, no longer the pid of the daemon itself. I hoped to achieve something similar to fghack (from daemontools), but so far failed. This is on Debian GNU/Linux, kernel 2.6.18. Any ideas are _very_ welcome! Best, --Toni++