Files
ProxyPanel/queue.sh
2020-09-04 12:57:54 +08:00

11 lines
260 B
Bash

#!/bin/bash
cd `dirname $0`
ps -ef | grep queue:work | grep -v grep
if [ $? -ne 0 ]
then
echo "启动队列监听"
nohup php artisan queue:work redis --queue=default --timeout=120 --tries=3 -vvv >> ./queue.log 2>&1 &
else
echo "队列监听中"
fi