queue.sh 275 B

123456789
  1. #!/bin/bash
  2. ps -ef | grep queue:work | grep -v grep
  3. if [ $? -ne 0 ]
  4. then
  5. echo "start queue process successfully....."
  6. nohup php artisan queue:work database --queue=default --timeout=60 --sleep=5 --tries=3 >> ./queue.log 2>&1 &
  7. else
  8. echo "queue is running....."
  9. fi