Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- CMD="$(basename $BASH_SOURCE .sh)"
- PROC=rabbitmq_recv$1
- if pidof -s $PROC >/dev/null; then
- echo "$CMD $PROC already run"
- else
- echo "$CMD $PROC not run"
- php rabbitmq_recv.php $PROC
- fi
- # ./rabbitmq_recv.sh 1
- # ./rabbitmq_recv.sh 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement