Questions tagged «start-stop-daemon»

1
start-stop-daemon无法正常工作,未写入pid文件
我正在尝试控制基于python的程序(不会与控制台分离) #!/bin/bash user=nobody pid=/var/run/xx.pid name=xx prog=/xx.py case $1 in start) /sbin/start-stop-daemon --start -b --oknodo --user "$user" --name "$name" --pidfile "$pid" --startas "$prog" --chuid nobody -- --daemon ;; stop) /sbin/start-stop-daemon --stop --oknodo --user "$user" --name "$name" --pidfile "$pid" --retry=TERM/5/KILL/1 ;; restart) ;; *) ;; esac 开始部分工作正常。我可以看到脚本已启动并正在运行,但是停止部分却没有。它只是说No xx found running; none killed. …

1
无法重新启动网络守护程序
输入sudo service networking restart时,出现如下错误: edward@computer:~$ sudo service networking restart stop: Job failed while stopping start: Job is already running: networking 当我想networking在更改Mac地址后以及在/etc/network/interfaces文件中设置静态IP之后重新启动时,遇到此错误。 即使还原了这些更改并且计算机运行正常,我仍然遇到相同的错误。 翻阅时/var/log/syslog发现: kernel: [ 6448.036144] init: networking post-stop process (28701) terminated with status 100 与失败的停止/启动有关吗? 我在Ubuntu 14.04上
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.