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..."
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..."