File: pidfilehack.8

package info (click to toggle)
minit 0.10-5
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 224 kB
  • ctags: 139
  • sloc: ansic: 1,655; makefile: 129; sh: 49; python: 33
file content (60 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.TH pidfilehack 8
.SH NAME
pidfilehack \- work around daemons that always fork
.SH SYNOPSIS
.B pidfilehack
.I servicename
.I pidfile
.I command
.I [parameters]

.SH DESCRIPTION
.B 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.

.SH USAGE
usually pidfilehack is symlinked as \fIrun\fR command of a service.
.TP
servicename
the name of the service pidfilehack is installed for.
.TP
pidfile
the filename to read the pid from
.TP
command
the real command to start
.TP
parameters
additional parameters for the command

A typical use of this command will look like this:
.TP
/etc/minit/apache
.TP
/etc/minit/apache/params
apache
.br
/var/run/apache.pid
.br
apachectl
.br
start
.TP
/etc/minit/apache/run
-> /sbin/pidfilehack

.SH AUTHOR
minit was written by Felix von Leitner and can be downloaded from
his page at
.I http://www.fefe.de/minit/

This manpage was written by Erich Schubert <erich@debian.org>
for the Debian GNU/Linux operating system.

.SH "SEE ALSO"
msvc(8), pidfilehack(8)