From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1213 Path: news.gmane.org!not-for-mail From: "ed neville" Newsgroups: gmane.comp.sysutils.supervision.general Subject: RE: Daemontools run script Date: Wed, 2 Aug 2006 10:07:28 +0100 Message-ID: <032F7A897DBD0E4EAA8F57DCFBAE979F16FFFC@ukplc01.internal.calleva.ukplc.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1154513851 16701 80.91.229.2 (2 Aug 2006 10:17:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2006 10:17:31 +0000 (UTC) Original-X-From: supervision-return-1449-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Aug 02 12:17:28 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1G8Dmw-0008Oc-IX for gcsg-supervision@gmane.org; Wed, 02 Aug 2006 12:17:18 +0200 Original-Received: (qmail 31019 invoked by uid 76); 2 Aug 2006 10:17:38 -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 31014 invoked from network); 2 Aug 2006 10:17:38 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Daemontools run script thread-index: Aca1SwoLag+z6uhqQseFjvr9s1ZFkQAx+tDw Original-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1213 Archived-At: ed neville wrote: > Hello, >=20 > Here's a subversion scripty from my Debian system YMMV... >=20 > #!/bin/sh >=20 > exec 2>&1 > exec /usr/bin/svnserve -d --foreground Hello, Here is an alternative vsftpd script without using tcpserver, in theory a little more efficient as a new cop of vsftpd is not forked on all connections #!/bin/sh exec 2>&1 PF=3D"/var/run/vsftpd/vsftpd.pid"; VSB=3D"/usr/sbin/vsftpd"; while [ true ] ; do PID=3D$( cat $PF ); CMD=3D$( cat /proc/$PID/cmdline 2>&1 ); if [ "$CMD" !=3D "$VSB" ] ; then echo "$VSB not running" ; /etc/init.d/vsftpd stop /etc/init.d/vsftpd start fi ; sleep 5; done ; --=20 "Unix gives us the power we need to crush those who oppose us" Regards, Ed