RE: script for restart the gnugk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As simple shell script which you can run after 1/5 minute interval using cron job. May be someone can write a better shell script , I am not an expert in writing shell scripts but this does work.
 
#!/bin/sh
value=`/bin/ps -e|grep gnugk`
if [ ! "$value" ]; then
/sbin/service gk restart
fi

 
Deepak Singhal 

From: openh323gk-users-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:openh323gk-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeff Chen
Sent: Saturday, June 11, 2005 4:21 AM
To: openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Subject: script for restart the gnugk

are there any script for restart the gnugk automatically if it dies ?
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux