BUG/MINOR: systemd: report the correct signal in debug message output
authorWilly Tarreau <w@1wt.eu>
Sat, 27 Feb 2016 07:18:04 +0000 (08:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Feb 2016 07:28:42 +0000 (08:28 +0100)
commit2fadbe5b0a69e03f51d655b7324a176335bd7fdb
tree722dbbe9034f7026051091f34bbd34d56658423f
parent1ab5e8642a3537006db8eeed4a3b1bdca2458b33
BUG/MINOR: systemd: report the correct signal in debug message output

Commit c54bdd2 ("MINOR: Also accept SIGHUP/SIGTERM in systemd-wrapper")
added support for extra signals but did not adapt the debug message,
which continues to report incorrect signal types. Let's pass the signal
number to the do_restart() and do_shutdown() functions so that the output
matches the signal that was received.
src/haproxy-systemd-wrapper.c