supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* RE: Daemontools run script
@ 2006-08-02  9:07 ed neville
  2006-08-02 16:59 ` Wayne Marshall
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: ed neville @ 2006-08-02  9:07 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Daemontools run script
@ 2006-08-01  9:15 ed neville
  0 siblings, 0 replies; 5+ messages in thread
From: ed neville @ 2006-08-01  9:15 UTC (permalink / raw)




Hello,

Here's a subversion scripty from my Debian system YMMV...

#!/bin/sh

exec 2>&1
exec /usr/bin/svnserve -d --foreground

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-03 18:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-02  9:07 Daemontools run script ed neville
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

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).