Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sampdir="/home/samp/"
- process=`ps u -C samp03svr | grep -vc USER`
- if [ $process -eq 0 ]; then
- echo $(date +"[%d/%m/%Y %H:%M]") sa-mp server not running, restarting it. >> backups/autorestart.log
- cd "$sampdir"
- ./samp03svr &
- else
- echo sa-mp server already running
- fi
Advertisement
Add Comment
Please, Sign In to add comment