forked from pool/haproxy
0b429848d7
Update to 1.4.25. Amended SR with missing patch information in .changes OBS-URL: https://build.opensuse.org/request/show/232846 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haproxy?expand=0&rev=4
29 lines
921 B
Diff
29 lines
921 B
Diff
From 27b806b87289b403728d373020c4aeb5f79eb4bc Mon Sep 17 00:00:00 2001
|
|
From: Apollon Oikonomopoulos <apoikos@debian.org>
|
|
Date: Thu, 17 Apr 2014 13:39:30 +0300
|
|
Subject: [PATCH 15/15] MINOR: systemd wrapper: propagate exit status
|
|
|
|
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.
|
|
---
|
|
src/haproxy-systemd-wrapper.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/haproxy-systemd-wrapper.c b/src/haproxy-systemd-wrapper.c
|
|
index d4baa90c266e..ba07ebe01ccc 100644
|
|
--- a/src/haproxy-systemd-wrapper.c
|
|
+++ b/src/haproxy-systemd-wrapper.c
|
|
@@ -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;
|
|
}
|
|
--
|
|
1.8.4.5
|
|
|