krot

rabbitmq_recv

Aug 23rd, 2020 (edited)
1,007
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data