All pastes #2107077 Raw Edit

Stuff

public text v1 · immutable
#2107077 ·published 2012-01-28 14:05 UTC
rendered paste body
process=`ps auxwww | grep yatb | grep -v grep | awk '{print $1}'`
DATE=`date`
if [ -z "$process" ]; then
echo "($DATE) Yatb dead"
/dir/yatb/yatb -u /dir/yatb/my.conf
else
echo "($DATE) Yatb OK!"
fi