Fetch the repository succeeded.
This action will force synchronization from Jonariguez/iHealth_site, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#!/bin/bash
if [ ! -n "$1" ]
then
echo "Usages: sh uwsgiserver.sh [start|stop|restart|status|log]"
exit 0
fi
if [ $1 = start ]
then
psid=`ps aux | grep "uwsgi" | grep "iHealth_site" | grep -v "grep" | wc -l`
if [ $psid -gt 5 ]
then
echo "iHealth_site'uwsgi is running!"
exit 0
else
uwsgi --ini uwsgi.ini --daemonize log/uwsgi.log --module iHealth_site.wsgi
echo "Start iHealth_site'uwsgi service [OK]"
fi
elif [ $1 = stop ];then
ps -ef | grep "iHealth_site" | grep -v grep | cut -c 10-15 | xargs kill -9
echo "Stop iHealth_site'uwsgi service [OK]"
elif [ $1 = restart ];then
ps -ef | grep "iHealth_site" | grep -v grep | cut -c 10-15 | xargs kill -9
echo "Stop iHealth_site'uwsgi service [OK]"
sleep 2
uwsgi --ini uwsgi.ini --daemonize log/uwsgi.log --module iHealth_site.wsgi
echo "Start iHealth_site'uwsgi service [OK]"
elif [ $1 = status ];then
ps -ef | grep "iHealth_site" | grep -v grep
elif [ $1 = log ];then
tail -f log/uwsgi.log
else
echo "Usages: sh uwsgiserver.sh [start|stop|restart|status|log]"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。