shell 1: monitor progressing status, if not exist restart it.
#!/bin/bash
while true
do
procnum=` lsof -i:18080 | wc -l`
if [ $procnum -eq 0 ]; then
sh /data/xieyi/xieyi/service.sh start
fi
echo '休眠1'
sleep 1
echo '休眠2'
done
shell 1: monitor progressing status, if not exist restart it.
#!/bin/bash
while true
do
procnum=` lsof -i:18080 | wc -l`
if [ $procnum -eq 0 ]; then
sh /data/xieyi/xieyi/service.sh start
fi
echo '休眠1'
sleep 1
echo '休眠2'
done