From 876b150a3a46d78072c2f2b6168488553cd0e3a6 Mon Sep 17 00:00:00 2001 From: Jeremy Hinegardner Date: Sun, 19 Feb 2012 17:57:09 -0700 Subject: [PATCH] update execreload to use bash -c --- haproxy.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haproxy.service b/haproxy.service index 50d94fc..4414d77 100644 --- a/haproxy.service +++ b/haproxy.service @@ -1,13 +1,13 @@ [Unit] Description=HAProxy For TCP And HTTP Based Applications -After=nsyslog.target etwork.target +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=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID +ExecReload=/bin/bash -c "exec /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID" [Install] WantedBy=multi-user.target