发布网友
共1个回答
热心网友
#!/bin/bash
while true
do
if [ -n "`grep stop log.txt`" ]; then
init 0
elif [ -n "`grep restart log.txt`" ]; then
init 1
fi
sleep 600
done