我试图启动python脚本启停守护:启动 - 停止守护进程和Python
sudo /sbin/start-stop-daemon --start --pidfile /home/loop.pid \
--user www-data --group www-data -b --make-pidfile --chuid www-data \
--exec /usr/bin/python /home/loop.py --verbose
,但我没有处理Python脚本。我做错了什么?
loop.py:
import time
while True:
print "working..."
time.sleep(3)
你得到pid文件? – chrisaycock 2011-12-20 16:42:45