Forks and watches multiple instances of a program in the same context (environment + fds) https://redmine.lighttpd.net/projects/multiwatch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.rst 1.1 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Description
  2. -----------
  3. :Homepage:
  4. http://redmine.lighttpd.net/projects/multiwatch/wiki
  5. Multiwatch forks multiple instance of one application and keeps them running;
  6. it is made to be used with spawn-fcgi, so all forks share the same fastcgi
  7. socket (no webserver restart needed if you increase/decrease the number of
  8. forks), and it is easier than to setup multiple daemontool supervised instances.
  9. Usage
  10. -----
  11. Example for spawning two rails instances::
  12. #!/bin/sh
  13. # run script
  14. 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
  15. More details in the man page.
  16. Build dependencies
  17. ------------------
  18. * glib >= 2.16.0 (http://www.gtk.org/)
  19. * libev (http://software.schmorp.de/pkg/libev.html)
  20. * cmake or autotools (for snapshots/releases the autotool generated files are included)
  21. Build
  22. -----
  23. * snapshot/release with autotools::
  24. ./configure
  25. make
  26. * build from git: git://git.lighttpd.net/multiwatch.git
  27. * with autotools::
  28. ./autogen.sh
  29. ./configure
  30. make
  31. * with cmake (should work with snapshots/releases too)::
  32. cmake .
  33. make