Tag: 启动 停止守护进程

sbin / start-stop-daemon无法启动python – ubuntu docker容器

我有一个简单的Python脚本,我想在Docker容器中的后台启动一个守护进程服务 /sbin/start-stop-daemon –start –user root –make-pidfile –pidfile /var/lock/subsys/my-application.pid –exec 'python /opt/app/uc/monitor/bin/my-application.py' 当我在我得到的shell中执行这个命令的时候 /sbin/start-stop-daemon: unable to stat //python /opt/app/uc/monitor/bin/my-application.py (No such file or directory) 但是,当在shell中执行下面的命令时,它就起作用了 python /opt/app/uc/monitor/bin/my-application.py 我确定python已经安装,所有的链接都已经安装好了。 谢谢您的帮助