Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- SERVICE="$1"
- RESULT=`ps -a | sed -n /${SERVICE}/p`
- if [ "${RESULT:-null}" = null ]; then
- echo "not running"
- else
- echo "running"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement