supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "ed neville" <ed.neville@ukplc.net>
Subject: RE: Daemontools run script
Date: Wed, 2 Aug 2006 10:07:28 +0100	[thread overview]
Message-ID: <032F7A897DBD0E4EAA8F57DCFBAE979F16FFFC@ukplc01.internal.calleva.ukplc.net> (raw)

ed neville wrote:
> Hello,
> 
> Here's a subversion scripty from my Debian system YMMV...
> 
> #!/bin/sh
> 
> 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="/var/run/vsftpd/vsftpd.pid";
VSB="/usr/sbin/vsftpd";

while [ true ] ;
do
        PID=$( cat $PF );
        CMD=$( cat /proc/$PID/cmdline 2>&1 );
        if [ "$CMD" != "$VSB" ] ;
        then
                echo "$VSB not running" ;
                /etc/init.d/vsftpd stop
                /etc/init.d/vsftpd start
        fi ;
        sleep 5;
done ;


-- 
"Unix gives us the power we need to crush those who oppose us"
Regards,
Ed


             reply	other threads:[~2006-08-02  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-02  9:07 ed neville [this message]
2006-08-02 16:59 ` Wayne Marshall
2006-08-02 20:09 ` Laurent Bercot
2006-08-03 18:35 ` George Georgalis
  -- strict thread matches above, loose matches on Subject: below --
2006-08-01  9:15 ed neville

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=032F7A897DBD0E4EAA8F57DCFBAE979F16FFFC@ukplc01.internal.calleva.ukplc.net \
    --to=ed.neville@ukplc.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).