restartsp.cgi
来自「一个用于嵌入式的Mini Web Server.大小只有200k. 非常适合用于」· CGI 代码 · 共 20 行
CGI
20 行
#!/bin/sh
echo "Status 200 Ok"
echo "Content-type:text/plain"
echo ""
echo "<html>"
echo "<body>"
#restart the Singnal Proxy server
cd /usr/local/g2sp/SipSPCtl
/usr/local/g2sp/SipSPCtl restart
cd -
NUMBER=`ps -ef|grep WhSignalProxy |wc -l`
if [ $NUMBER -le 1 ]
then
echo "Failed to restart the Singnal Proxy Server !"
else
echo "Singnal Proxy Server was started successfully !"
fi
echo "</body>"
echo "</html>"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?