pidfilehack.8 (1226B) download
1.TH pidfilehack 8
2.SH NAME
3pidfilehack \- work around daemons that always fork
4.SH SYNOPSIS
5.B pidfilehack
6.I servicename
7.I pidfile
8.I command
9.I [parameters]
10
11.SH DESCRIPTION
12.B pidfilehack
13is used to work around daemons that insist on forking into the background,
14but that do write a correct pid file.
15
16pidfilehack forks the actual service, then waits for the pidfile to
17be written. Once it can read the pid from the pidfile it will tell
18minit the real pid and quit.
19
20.SH USAGE
21usually pidfilehack is symlinked as \fIrun\fR command of a service.
22.TP
23servicename
24the name of the service pidfilehack is installed for.
25.TP
26pidfile
27the filename to read the pid from
28.TP
29command
30the real command to start
31.TP
32parameters
33additional parameters for the command
34
35A typical use of this command will look like this:
36.TP
37/etc/minit/apache
38.TP
39/etc/minit/apache/params
40apache
41.br
42/var/run/apache.pid
43.br
44apachectl
45.br
46start
47.TP
48/etc/minit/apache/run
49-> /sbin/pidfilehack
50
51.SH AUTHOR
52minit was written by Felix von Leitner and can be downloaded from
53his page at
54.I http://www.fefe.de/minit/
55
56This manpage was written by Erich Schubert <[email protected]>
57for the Debian GNU/Linux operating system.
58
59.SH "SEE ALSO"
60msvc(8), pidfilehack(8)