minit

A small yet feature-complete init (http://fefe.de/minit/)
Log | Files | Refs | README | LICENSE

pidfilehack.8 (1226B)


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