« Return to Thread: ekiga.net server down again

Re: ekiga.net server down again

by Willamowius :: Rate this Message:

Reply to Author | View in Thread

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="foo@..."

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.

--
Jan Willamowius, jan@..., http://www.gnugk.org/
_______________________________________________
ekiga-list mailing list
ekiga-list@...
http://mail.gnome.org/mailman/listinfo/ekiga-list

 « Return to Thread: ekiga.net server down again