Advertisement
kisslo

Linux - srcds_linux check

Sep 24th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/sh
  2. #Start srcds_linux if not running
  3. #processus= `ps auxw | grep ./srcds_linux | grep -v grep | awk '{print $11}'`
  4. if pidof -s srcds_linux > /dev/null; then
  5.     echo 'Srcds is already running!'
  6. else
  7.     sh /home/user/srcds_startscript.sh
  8.     echo 'Srcds started...'
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement