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..."
参考来源: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..."