]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: systemd: Type=forking in unit file
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 1 Jun 2017 15:38:57 +0000 (17:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 08:56:32 +0000 (10:56 +0200)
Adding Type=forking in the unit file ensure better monitoring from
systemd. During a systemctl start the tool is able to return an error if
it didn't work with this option.

contrib/systemd/haproxy.service.in

index 05bb7161daa5ada26b3e7bccc21b4e64f99ea42b..ca38d700110c1e47bf63d3aaca945011dc8329a0 100644 (file)
@@ -12,6 +12,7 @@ ExecReload=@SBINDIR@/haproxy -f $CONFIG -c -q
 ExecReload=/bin/kill -USR2 $MAINPID
 KillMode=mixed
 Restart=always
+Type=forking
 
 [Install]
 WantedBy=multi-user.target