python 后台服务
生活随笔
收集整理的這篇文章主要介紹了
python 后台服务
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
python 后臺服務
centos 6x
#!/bin/sh # chkconfig: 123456 90 10 # TTS Server for Speech Synthesis # workdir=/etc/speechstart() {cd $workdir/usr/bin/python /etc/speech/TTSserver.py &echo "Server started." }stop() {pid=`ps -ef | grep '[p]ython /etc/speech/TTSserver.py' | awk '{ print $2 }'`echo $pidkill $pidsleep 2echo "Server killed." }case "$1" instart)start;;stop)stop ;;restart)stopstart;;*)echo "Usage: /etc/init.d/tornado-tts {start|stop|restart}"exit 1 esac exit 0 posted on 2017-08-16 18:05 北京濤子 閱讀(...) 評論(...) 編輯 收藏轉載于:https://www.cnblogs.com/liujitao79/p/7374741.html
總結
以上是生活随笔為你收集整理的python 后台服务的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 易炼红书记对武义火灾的评价是什么
- 下一篇: 乌鲁木齐乌房紫云台是毛坯房还是精装修?