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
8bb09a
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
8bb09a
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
8bb09a
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS
8bb09a
ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -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