From 2829a4b8c8346f65ef2657b82374803bddd4f27c Mon Sep 17 00:00:00 2001 From: Ryan O'Hara Date: Wed, 4 Mar 2015 15:24:54 -0600 Subject: [PATCH] Rework systemd service and sysconfig file --- haproxy.service | 2 +- haproxy.spec | 5 ++++- haproxy.sysconfig | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/haproxy.service b/haproxy.service index 5a3585a..c1852bd 100644 --- a/haproxy.service +++ b/haproxy.service @@ -4,7 +4,7 @@ After=syslog.target network.target [Service] EnvironmentFile=/etc/sysconfig/haproxy -ExecStart=/usr/sbin/haproxy-systemd-wrapper $HAPROXY_OPTIONS +ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS ExecReload=/bin/kill -USR2 $MAINPID [Install] diff --git a/haproxy.spec b/haproxy.spec index 1446965..6ed65d0 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -8,7 +8,7 @@ Name: haproxy Version: 1.5.11 -Release: 3%{?dist} +Release: 4%{?dist} Summary: HAProxy reverse proxy for high availability environments Group: System Environment/Daemons @@ -144,6 +144,9 @@ exit 0 %attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home} %changelog +* Wed Mar 04 2015 Ryan O'Hara - 1.5.11-4 +- Rework systemd service and sysconfig file + * Wed Feb 11 2015 Ryan O'Hara - 1.5.11-3 - Add sysconfig file diff --git a/haproxy.sysconfig b/haproxy.sysconfig index 7c66885..2b38e35 100644 --- a/haproxy.sysconfig +++ b/haproxy.sysconfig @@ -1 +1,4 @@ -HAPROXY_OPTIONS="-f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid" +# Add extra options to the haproxy daemon here. This can be useful for +# specifying multiple configuration files with multiple -f options. +# See haproxy(1) for a complete list of options. +OPTIONS=""