mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-21 08:50:10 -05:00
BUG/MINOR: systemd: propagate the correct signal to haproxy
Some people report that sometimes there's a collection of old processes after a restart of the systemd wrapper. It's not surprizing when reading the code, the SIGTERM is propagated as a SIGINT which asks for a graceful stop instead. If people ask for termination, we should terminate.
This commit is contained in:
parent
2fadbe5b0a
commit
6c2f7955e7
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ static void do_shutdown(int sig)
|
|||
if (pid > 0) {
|
||||
fprintf(stderr, SD_DEBUG "haproxy-systemd-wrapper: %s -> %d.\n",
|
||||
sig == SIGTERM ? "SIGTERM" : "SIGINT", pid);
|
||||
kill(pid, SIGINT);
|
||||
kill(pid, sig);
|
||||
free(pid_strv[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue