ps -aux|grep laravel-echo-server |grep -v grep|awk '{print $2}'|xargs kill ps -aux|grep artisan |grep -v grep|awk '{print $2}'|xargs kill nohup laravel-echo-server start >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & nohup php artisan queue:work --tries=2 --delay=2 >/dev/null 2>&1 & isExistStr=$(cat /etc/crontab|grep '* * * * * root cd /var/www_test/was && php artisan schedule:run >> /dev/null 2>&1') if [ ! -n "$isExistStr" ]; then echo -e '\n* * * * * root cd /var/www_test/was && php artisan schedule:run >> /dev/null 2>&1' >> /etc/crontab fi systemctl restart crond