swoole-- service Graceful Restart

Reference Source: https://wiki.swoole.com/wiki/page/p-server/reload.html

shell code:

echo "loading..."

pid=$(pidof live)
# pid= `pidof live`

echo $pid

kill -usr1 $pid

echo "success loading..."

 

Guess you like

Origin www.cnblogs.com/laijinquan/p/12324625.html