Files
ProxyPanel/queue.sh
兔姬桑 a0922521cf 初始化
2020-08-05 03:19:28 +08:00

11 lines
268 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 --daemon --queue=default --timeout=60 --tries=3 -vvv >> ./queue.log 2>&1 &
else
echo "队列监听中"
fi