I'll do something like that. The program is started by a wrapper though.

Le jeudi 09 juillet 2009 à 15:52 +0200, Jan Willamowius a écrit :
> I'm not sure what kind of process is dying on ekiga.net, but sometimes
> it can be very helpful to use an automatic restarter until the real
> problem is fixed:
> 
> #!/bin/sh
> 
> START_PROC="/usr/local/bin/dying_process -a -b -c"
> NOTIFY_EMAIL="f...@bar.com"
> 
> while :; do
>       $START_PROC
>       EXITSTATUS=$?
>       if [ $EXITSTATUS -gt 128 ]; then
>               echo "Process has crashed" | /usr/bin/mail -s 
> "Crash"$NOTIFY_EMAIL 
>       elif [ $EXITSTATUS == 0 ]; then
>               echo "Normally Stoped"
>               exit
>       fi
>       echo "Restarting Process"
>       sleep 4
> done
> 
> 
> 
> 
> Andre Robatino wrote:
> > The server is down again.  It's been down for at least a few hours.
> 
-- 
 _     Damien Sandras
(o-      
//\    Ekiga Softphone : http://www.ekiga.org/
v_/_   Be IP           : http://www.beip.be/
       FOSDEM          : http://www.fosdem.org/
       SIP Phone       : sip:dsand...@ekiga.net
                       

_______________________________________________
ekiga-list mailing list
ekiga-list@gnome.org
http://mail.gnome.org/mailman/listinfo/ekiga-list

Reply via email to