Questions tagged «start-stop-daemon»

1
初始化脚本不会创建PID文件
我需要为IRC记录器创建一个初始化脚本。我复制了/etc/init.d/skeleton。我填写了配置部分以满足我的需要,并且由于IRC记录器未拆分,因此还必须在启动守护程序命令中添加--background。当我使用初始化脚本时,记录器可以正常启动,但它不会像应有的那样创建.pid文件。结果,除非我自己找出进程ID并杀死它,否则无法停止该进程。这是脚本: #! /bin/sh ### BEGIN INIT INFO # Provides: skeleton # Required-Start: $remote_fsh # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Example initscript # Description: This file should be used to construct scripts to be # placed in /etc/init.d. ### END INIT …
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.