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:
> START_PROC="/usr/local/bin/dying_process -a -b -c"
> NOTIFY_EMAIL="[hidden email]"
> while :; do
> if [ $EXITSTATUS -gt 128 ]; then
> echo "Process has crashed" | /usr/bin/mail -s "Crash"$NOTIFY_EMAIL
> elif [ $EXITSTATUS == 0 ]; then
> echo "Normally Stoped"
> echo "Restarting Process"
> sleep 4
> Andre Robatino wrote:
> > The server is down again. It's been down for at least a few hours.