Forks and watches multiple instances of a program in the same context (environment + fds)
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Stefan Bühler afc537d345 [build] improve (warning) compile flags il y a 1 an
.gitignore Initial commit il y a 11 ans
CMakeLists.txt [build] improve (warning) compile flags il y a 1 an
COPYING Fix year in COPYING il y a 11 ans distribute README.rst il y a 5 ans
README.rst make README a proper formatted README.rst il y a 7 ans Initial commit il y a 11 ans
config.h.cmake Initial commit il y a 11 ans [build] improve (warning) compile flags il y a 1 an
multiwatch.1 fix minus signs in man page il y a 5 ans
multiwatch.c Taught multiwatch to send the correct signal when using --signal il y a 2 ans




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.


Example for spawning two rails instances::

# 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 (
* libev (
* cmake or autotools (for snapshots/releases the autotool generated files are included)


* snapshot/release with autotools::


* build from git: git://

* with autotools::


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

cmake .