diff options
author | Eric Wong <e@80x24.org> | 2016-06-07 20:45:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-07 21:03:11 +0000 |
commit | 6a65054ce2763d51aca5da525656bcb1f08d61a5 (patch) | |
tree | 64ca3ee9d31d513de7fb953297600373db4a2d7b /t | |
parent | 33c2f7794dc72b59390e6199fa0a6f41fb36eeb3 (diff) | |
download | unicorn-jr/init.tar.gz |
Rework the "upgrade" target to only read the PID files once to avoid misreading the wrong PID files in the middle of the upgrade. Additionally, introduce the UPGRADE_DELAY environment parameter so users can increase/decrease according to their application startup time. PID files are inherently racy and people should be using a process manager (systemd or similar) instead, but this should mitigate most of the problems with the old target. While we're at it, add LSB tags for systems which complain about the lack of them and modernize things a bit using $(command) construct instead of the more fragile `command`. Thanks-to: Jesper Rønn-Jensen <jesperrr@gmail.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions