Forks and watches multiple instances of a program in the same context (environment + fds)
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Stefan Bühler afc537d345 [build] improve (warning) compile flags 1年前
.gitignore Initial commit 11 年前
CMakeLists.txt [build] improve (warning) compile flags 1年前
COPYING Fix year in COPYING 11 年前 distribute README.rst 5 年前
README.rst make README a proper formatted README.rst 7 年前 Initial commit 11 年前
config.h.cmake Initial commit 11 年前 [build] improve (warning) compile flags 1年前
multiwatch.1 fix minus signs in man page 5 年前
multiwatch.c Taught multiwatch to send the correct signal when using --signal 2 年前




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 .