Forks and watches multiple instances of a program in the same context (environment + fds)
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Stefan Bühler afc537d345 [build] improve (warning) compile flags pirms 1 gada
.gitignore Initial commit pirms 11 gadiem
CMakeLists.txt [build] improve (warning) compile flags pirms 1 gada
COPYING Fix year in COPYING pirms 11 gadiem distribute README.rst pirms 5 gadiem
README.rst make README a proper formatted README.rst pirms 7 gadiem Initial commit pirms 11 gadiem
config.h.cmake Initial commit pirms 11 gadiem [build] improve (warning) compile flags pirms 1 gada
multiwatch.1 fix minus signs in man page pirms 5 gadiem
multiwatch.c Taught multiwatch to send the correct signal when using --signal pirms 2 gadiem




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 .