swoole--服务平滑重启

参考来源:https://wiki.swoole.com/wiki/page/p-server/reload.html

shell代码:

echo "loading..."

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

echo $pid

kill -usr1 $pid

echo "success loading..."

 

posted @ 2020-02-18 02:34  1O(∩_∩)O1  阅读(408)  评论(0编辑  收藏  举报