Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- : ${CONTROL:=0}
- while [ $CONTROL=0 ] ; do
- ps aux | grep bot.py | grep -v grep >> /dev/null
- if [ $? -ne 0 ]; then
- python /home/Algabe/Bot/bin ./bot.py --daemon
- else
- echo ""
- fi
- sleep 120
- done
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement