Commit Graph

6 Commits

Author SHA1 Message Date
Andrew Latham
fbc4e77321 DOC: Address issue where documentation is excluded due to a gitignore rule. 2014-10-07 15:05:19 +02:00
Marc-Antoine Perennou
f825580da8 MEDIUM: add systemd service
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2013-02-13 10:47:59 +01:00
Marc-Antoine Perennou
ed9803e606 MEDIUM: add haproxy-systemd-wrapper
Currently, to reload haproxy configuration, you have to use "-sf".

There is a problem with this way of doing things. First of all, in the systemd world,
reload commands should be "oneshot" ones, which means they should not be the new main
process but rather a tool which makes a call to it and then exits. With the current approach,
the reload command is the new main command and moreover, it makes the previous one exit.
Systemd only tracks the main program, seeing it ending, it assumes it either finished or failed,
and kills everything remaining as a grabage collector. We then end up with no haproxy running
at all.

This patch adds wrapper around haproxy, no changes at all have been made into it,
so it's not intrusive and doesn't change anything for other hosts. What this wrapper does
is basically launching haproxy as a child, listen to the SIGUSR2 (not to conflict with
haproxy itself) signal, and spawing a new haproxy with "-sf" as a child to relay the
first one.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2013-02-13 10:47:56 +01:00
Willy Tarreau
83ded5082e [CLEANUP] update .gitignore to ignore more temporary files 2008-03-07 09:39:37 +01:00
Willy Tarreau
14d43834f5 [BUILD] updated .gitignore 2006-12-19 18:03:12 +01:00
Willy Tarreau
09733ab109 [MINOR] add .gitignore 2006-12-16 19:56:22 +01:00