4834bd
[Unit]
4834bd
Description=HAProxy Load Balancer
4834bd
After=network-online.target
4834bd
Wants=network-online.target
4834bd
4834bd
[Service]
4834bd
EnvironmentFile=-/etc/sysconfig/haproxy
4834bd
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
4834bd
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
4834bd
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $OPTIONS
4834bd
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
4834bd
ExecReload=/bin/kill -USR2 $MAINPID
4834bd
KillMode=mixed
4834bd
SuccessExitStatus=143
4834bd
Type=notify
4834bd
4834bd
[Install]
4834bd
WantedBy=multi-user.target