Project

General

Profile

Feature #2409

[PATCH] add persistence option

Added by fthain@telegraphics.com.au over 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
2012-04-10
Due date:
% Done:

0%

Estimated time:

Description

This patch adds a persistence option and special SIGHUP handling. This means that I can use spawn-fcgi and multiwatch with web app servers still under development, which are likely to be buggy and may not start.

Rather than multiwatch just giving up and exiting (which is awkward
because I start it using spawn-cfgi setuid option) the web app developers can debug their apps and then simply send multiwatch a SIGHUP, like so:
$ kill -HUP $( < /var/run/spawn-fcgi/whatever.pid )

The patch also makes multiwatch more generally useful by removing special handling for SIGUSR1. This change means that if children do gracefully exit on SIGUSR1 then multiwatch will also exit (assuming no --persist option) which should preserve existing behavior. (I hope this is not too controversial as in general SIGUSR1 does not mean process termination; there are other signals for that.)

multiwatch-persistence.diff (8.27 KB) multiwatch-persistence.diff fthain@telegraphics.com.au, 2012-04-10 15:25

History

#1

Updated by stbuehler over 4 years ago

  • Target version set to 1.0.1

Also available in: Atom