Project

General

Profile

Actions

Wiki » History » Revision 1

Revision 1/13 | Next »
icy, 2012-02-10 20:44


Multiwatch

Description

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.

Downloads

Building

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.

License

Updated by icy almost 13 years ago · 1 revisions