Forks and watches multiple instances of a program in the same context (environment + fds) https://redmine.lighttpd.net/projects/multiwatch
Go to file
2019-08-25 13:16:45 +02:00
.gitignore Initial commit 2009-03-24 15:39:46 +01:00
autogen.sh Initial commit 2009-03-24 15:39:46 +01:00
CMakeLists.txt [build] improve (warning) compile flags 2019-08-25 13:16:45 +02:00
config.h.cmake Initial commit 2009-03-24 15:39:46 +01:00
configure.ac [build] improve (warning) compile flags 2019-08-25 13:16:45 +02:00
COPYING Fix year in COPYING 2009-03-24 16:06:56 +01:00
Makefile.am distribute README.rst 2015-06-27 20:20:55 +02:00
multiwatch.1 fix minus signs in man page 2015-06-27 19:28:23 +02:00
multiwatch.c Taught multiwatch to send the correct signal when using --signal 2018-07-21 13:59:10 -07:00
README.rst make README a proper formatted README.rst 2013-05-29 12:53:24 +02:00

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