LINUX ADMIN - JIBIN
Tuesday, February 23, 2010
script for auto restart of red5
root@system [~]# cat /root/red5cron
#!/bin/bash
sitepoint=`ps aux | grep -v grep | grep -c 'red5'`
if [ $sitepoint -le "2" ]; then
killall -9 /usr/local/jdk/bin/java;
cd /usr/local/red
./red5.sh&
fi
root@system [~]# cd
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment