]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: systemd wrapper: propagate exit status
authorApollon Oikonomopoulos <apoikos@debian.org>
Thu, 17 Apr 2014 13:39:30 +0000 (16:39 +0300)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2014 16:11:11 +0000 (18:11 +0200)
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.

src/haproxy-systemd-wrapper.c

index d4baa90c266e0c5ae7cfd4cf3d0a134ee74db717..ba07ebe01ccc75a723edab575492c8fe149586ca 100644 (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;
 }