#!/bin/bash basepath=$(cd `dirname $0`; pwd) cd $basepath pidlist=`ps -ef | grep wallet:task | grep -v grep |awk '{print $2}'` kill -9 $pidlist nohup php ../artisan wallet:task start >/dev/null 2>&1 & echo 'wallet task runing ...'