Advertisement
Guest User

Untitled

a guest
May 23rd, 2010
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #!/bin/sh
  2. SERVICE='pidgin'
  3.  
  4. if ps ax | grep -v grep | grep $SERVICE > /dev/null
  5. then
  6. echo "$SERVICE service running, everything is fine"
  7. else
  8. echo "$SERVICE is not running"
  9. $SERVICE
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement