pidfilehack8
Work around daemons that always fork
Usage
pidfilehack servicename
pidfile
command
[parameters]
Overview
pidfilehack is used to work around daemons that insist on forking into the background, but that do write a correct pid file.
pidfilehack forks the actual service, then waits for the pidfile to be written. Once it can read the pid from the pidfile it will tell minit the real pid and quit.
Usage
usually pidfilehack is symlinked as run command of a service.
- servicename
-
the name of the service pidfilehack is installed for.
- pidfile
-
the filename to read the pid from
- command
-
the real command to start
- parameters
-
additional parameters for the command
A typical use of this command will look like this:
- /etc/minit/apache
- /etc/minit/apache/params
-
apache
/var/run/apache.pid
apachectl
start
- /etc/minit/apache/run
-
-> /sbin/pidfilehack
Releases
Unchanged in 3 releases since Debian 5.0 (Lenny).