mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 13:19:22 +02:00
BUG/MINOR: systemd: make the wrapper return a non-null status code on error
When execv() fails to execute the haproxy executable, it's important to return an error instead of pretending everything is cool. This fix should be backported to 1.6 and 1.5 in order to improve the overall reliability under systemd.
This commit is contained in:
@@ -94,7 +94,7 @@ static void spawn_haproxy(char **pid_strv, int nb_pid)
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
execv(argv[0], argv);
|
||||
exit(0);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user