Advertisement
krot

rabbitmq_recv

Aug 23rd, 2020 (edited)
1,567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. CMD="$(basename $BASH_SOURCE .sh)"
  4. PROC=rabbitmq_recv$1
  5. if pidof -s $PROC >/dev/null; then
  6.     echo "$CMD $PROC already run"
  7. else
  8.     echo "$CMD $PROC not run"
  9.     php rabbitmq_recv.php $PROC
  10. fi
  11. # ./rabbitmq_recv.sh 1
  12. # ./rabbitmq_recv.sh 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement