]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: systemd: remove the ExecStartPre line in the unit file
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 20 Aug 2021 21:36:45 +0000 (23:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 20 Aug 2021 21:36:45 +0000 (23:36 +0200)
The ExecStartPre line was introduced a long time ago in the systemd unit
file, at the time of systemd wrapper. With the haproxy master worker
mode, this line is now useless, since starting haproxy itself will check
the configuration.

However this does not concern the check in the ExecReload which is still
needed to return a reload status to HAProxy.

It probably shouldn't be backported.

admin/systemd/haproxy.service.in

index 49d3c52cf1c1d2e83ca6fc6c9eb4fc9f7138aca5..eb1ad428b9185dcaa9070cbc116bc5477d4a234f 100644 (file)
@@ -7,7 +7,6 @@ Wants=network-online.target
 EnvironmentFile=-/etc/default/haproxy
 EnvironmentFile=-/etc/sysconfig/haproxy
 Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"
-ExecStartPre=@SBINDIR@/haproxy -Ws -f $CONFIG -c -q $EXTRAOPTS
 ExecStart=@SBINDIR@/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS
 ExecReload=@SBINDIR@/haproxy -Ws -f $CONFIG -c -q $EXTRAOPTS
 ExecReload=/bin/kill -USR2 $MAINPID