Forks and watches multiple instances of a program in the same context (environment + fds) https://redmine.lighttpd.net/projects/multiwatch
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 
Stefan Bühler afc537d345 [build] improve (warning) compile flags vor 10 Monaten
.gitignore Initial commit vor 11 Jahren
CMakeLists.txt [build] improve (warning) compile flags vor 10 Monaten
COPYING Fix year in COPYING vor 11 Jahren
Makefile.am distribute README.rst vor 5 Jahren
README.rst make README a proper formatted README.rst vor 7 Jahren
autogen.sh Initial commit vor 11 Jahren
config.h.cmake Initial commit vor 11 Jahren
configure.ac [build] improve (warning) compile flags vor 10 Monaten
multiwatch.1 fix minus signs in man page vor 5 Jahren
multiwatch.c Taught multiwatch to send the correct signal when using --signal vor 1 Jahr

README.rst

Description
-----------

:Homepage:
http://redmine.lighttpd.net/projects/multiwatch/wiki

Multiwatch forks multiple instance of one application and keeps them running;
it is made to be used with spawn-fcgi, so all forks share the same fastcgi
socket (no webserver restart needed if you increase/decrease the number of
forks), and it is easier than to setup multiple daemontool supervised instances.

Usage
-----

Example for spawning two rails instances::

#!/bin/sh
# run script

exec spawn-fcgi -n -s /tmp/fastcgi-rails.sock -u www-rails -U www-data -- /usr/bin/multiwatch -f 2 -- /home/rails/public/dispatch.fcgi

More details in the man page.


Build dependencies
------------------

* glib >= 2.16.0 (http://www.gtk.org/)
* libev (http://software.schmorp.de/pkg/libev.html)
* cmake or autotools (for snapshots/releases the autotool generated files are included)


Build
-----

* snapshot/release with autotools::

./configure
make

* build from git: git://git.lighttpd.net/multiwatch.git

* with autotools::

./autogen.sh
./configure
make

* with cmake (should work with snapshots/releases too)::

cmake .
make