2010-09-17 10:40:16 +00:00
|
|
|
.TH multiwatch 1 "September 17, 2010"
|
2009-03-24 14:39:46 +00:00
|
|
|
.SH NAME
|
|
|
|
multiwatch \- forks and watches multiple instances of a program in the same environment
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B multiwatch
|
2015-06-27 17:28:23 +00:00
|
|
|
[options] \-\- <application> [app arguments]
|
2009-03-24 14:39:46 +00:00
|
|
|
|
|
|
|
.B multiwatch
|
|
|
|
\-v
|
|
|
|
|
|
|
|
.B multiwatch
|
|
|
|
\-\-help | \-?
|
|
|
|
.SH DESCRIPTION
|
2010-09-17 10:40:16 +00:00
|
|
|
\fImultiwatch\fP is used to fork and watch multiple FastCGI backends.
|
2009-03-24 14:39:46 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP 8
|
2010-09-17 10:40:16 +00:00
|
|
|
.B \-f, \-\-forks=children
|
|
|
|
Number of children to fork and watch (default 1)
|
2009-03-24 14:39:46 +00:00
|
|
|
.TP 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B \-r, \-\-retry=retries
|
2010-09-17 10:40:16 +00:00
|
|
|
Number of retries to fork a single child (default 3)
|
2009-03-24 14:39:46 +00:00
|
|
|
.TP 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B \-t, \-\-timeout=msecs
|
2010-09-17 10:40:16 +00:00
|
|
|
Retry timeout in ms; if the child dies after the timeout the retry counter is reset (default 10000 ms = 10 s)
|
|
|
|
.TP 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B \-s, \-\-signal=signame
|
2010-09-17 10:40:16 +00:00
|
|
|
Signal to send to children to signal 'graceful' termination (HUP,INT,QUIT,TERM,USR1,USR2, default is USR1)
|
2009-03-24 14:39:46 +00:00
|
|
|
.TP 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B \-?, \-\-help
|
2009-03-24 14:39:46 +00:00
|
|
|
General usage instructions
|
|
|
|
.TP 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B \-v, \-\-version
|
2010-09-17 10:40:16 +00:00
|
|
|
Show version and exit
|
|
|
|
.SH SIGNAL HANDLING
|
|
|
|
multiwatch will forward the signal USR2; if it receives HUP,INT,QUIT,TERM or USR1, it will send the
|
2015-06-27 17:28:23 +00:00
|
|
|
signal from \-\-signal to the children; if it receives another signal from that group, it will forward the
|
2010-09-17 10:40:16 +00:00
|
|
|
signal again.
|
|
|
|
|
|
|
|
A signal of the group HUP,INT,QUIT,TERM and USR1 tells multiwatch to go into "shutdown" mode, so it won't
|
|
|
|
restart children after receiving it.
|
2009-03-24 14:39:46 +00:00
|
|
|
.SH EXAMPLE
|
|
|
|
.TP 8
|
2010-09-17 10:40:16 +00:00
|
|
|
Spawn 2 rails instances on the same FastCGI socket (and supervise them):
|
2009-03-24 14:39:46 +00:00
|
|
|
.RS 8
|
2015-06-27 17:28:23 +00:00
|
|
|
.B spawn\-fcgi \-s /tmp/fastcgi\-rails.sock \-n \-\- /usr/bin/multiwatch \-f 2 /home/rails/public/dispatch.fcgi
|
2009-03-24 14:39:46 +00:00
|
|
|
.RE
|
|
|
|
.SH SEE ALSO
|
2015-06-27 17:28:23 +00:00
|
|
|
spawn\-fcgi(1)
|
2009-03-24 14:39:46 +00:00
|
|
|
.SH AUTHOR
|
|
|
|
Stefan Buehler <stbuehler@web.de>.
|