[haproxy] Use haproxy-systemd-wrapper in service file (#1126955)

rohara rohara at fedoraproject.org
Wed Aug 6 18:05:52 UTC 2014


commit 57e2b7dee627f8ffb56a08e5a88eb633f21d515d
Author: Ryan O'Hara <rohara at redhat.com>
Date:   Wed Aug 6 13:04:20 2014 -0500

    Use haproxy-systemd-wrapper in service file (#1126955)

 haproxy.service |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/haproxy.service b/haproxy.service
index 4414d77..64f1cc6 100644
--- a/haproxy.service
+++ b/haproxy.service
@@ -1,13 +1,10 @@
 [Unit]
-Description=HAProxy For TCP And HTTP Based Applications
+Description=HAProxy Load Balancer
 After=syslog.target network.target
 
 [Service]
-Type=forking
-PIDFile=/run/haproxy.pid
-ExecStartPre=/usr/sbin/haproxy -c -q -f /etc/haproxy/haproxy.cfg
-ExecStart=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
-ExecReload=/bin/bash -c "exec /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID"
+ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
+ExecReload=/bin/kill -USR2 $MAINPID
 
 [Install]
 WantedBy=multi-user.target


More information about the scm-commits mailing list