【发布时间】:2017-07-26 12:29:49
【问题描述】:
这是脚本内容,位于/etc/init.d/myserviced:
#!/lib/init/init-d-script
DAEMON="/usr/local/bin/myprogram.py"
NAME="myserviced"
DESC="The description of my service"
当我启动服务时(直接调用它或调用sudo service myserviced start),我可以看到程序myprogram.py运行,但它没有返回到命令提示符。
我想肯定是我误解了什么,那是什么?
系统是 Debian,在 Raspberry Pi 上运行。
【问题讨论】:
标签: sysv