From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1472 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit not collecting zombies Date: Thu, 12 Jul 2007 10:21:55 -0400 (EDT) Message-ID: References: <20070618134516.GA1560@home.power> <20070619181325.23252.qmail@a92f927aabd53f.315fe32.mid.smarden.org> <20070619190751.GC27090@home.power> <20070620162325.26345.qmail@7d91355cde742c.315fe32.mid.smarden.org> <20070620165736.GC12963@home.power> <20070620183532.4571.qmail@9f638fd8b69905.315fe32.mid.smarden.org> <20070623044205.GA1594@home.power> <20070626095920.6195.qmail@3e147d410b1c2c.315fe32.mid.smarden.org> <20070707071657.GA1517@home.power> <20070707191219.GA1538@home.power> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1184250122 14071 80.91.229.12 (12 Jul 2007 14:22:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 14:22:02 +0000 (UTC) Cc: supervision@list.skarnet.org To: Alex Efros Original-X-From: supervision-return-1709-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Jul 12 16:22:00 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 1I8zYO-0000OH-1r for gcsg-supervision@gmane.org; Thu, 12 Jul 2007 16:22:00 +0200 Original-Received: (qmail 1582 invoked by uid 76); 12 Jul 2007 14:22:20 -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 1570 invoked from network); 12 Jul 2007 14:22:19 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com In-Reply-To: <20070707191219.GA1538@home.power> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1472 Archived-At: On Sat, 7 Jul 2007, Alex Efros wrote: > it may be enough to do even this: > > */1 * * * * runsvdir /var/www/soft.p/html/.lib/var/service/ > > But. I don't know how reliable this feature in my cron daemon (I'm using > `dcron') and how it realized. So why are you using cron? Why don't you have a "soft.p.runsvdir" service, with a run script which does: #! /bin/sh exec runsvdir /var/www/soft.p/html/.lib/var/service/ ? > So I'd prefer to use known reliable solution. Indeed. > (Moreover, cron daemon can be any, not only dcron - I'd like to use same > crontab configuration line which will work with any cron daemon.) >> Why are you starting a new runsvdir every minute? > > Because I need to restart user-controlled services under runsvdir after > reboot without any special configuration done by 'root'. That only says that you need to have runsvdir running, not that you need to restart it every minues. > All these services should be running as reliable as usual system services > in /var/service/* and should be restarted after system reboot. runit can do that (without cron). > To avoid multiple execution of runsvdir for same directory with services > I use `chpst -L`. runsv guarantees singleton processes.