MINOR: systemd wrapper: propagate exit status

Use HAProxy's exit status as the systemd wrapper's exit status instead
of always returning EXIT_SUCCESS, permitting the use of systemd's
`Restart = on-failure' logic.
This commit is contained in:
Apollon Oikonomopoulos 2014-04-17 16:39:30 +03:00 committed by Willy Tarreau
parent 6b6f3a09fb
commit e8ea598721
1 changed files with 1 additions and 1 deletions

View File

@ -184,5 +184,5 @@ int main(int argc, char **argv)
fprintf(stderr, SD_NOTICE "haproxy-systemd-wrapper: exit, haproxy RC=%d\n",
status);
return EXIT_SUCCESS;
return status;
}