Advertisement
Guest User

Untitled

a guest
Jun 28th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. SERVICE="$1"
  4. RESULT=`ps -a | sed -n /${SERVICE}/p`
  5.  
  6. if [ "${RESULT:-null}" = null ]; then
  7. echo "not running"
  8. else
  9. echo "running"
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement