jingjin / rpms / haproxy

Forked from rpms/haproxy 4 years ago
Clone

Blame SOURCES/haproxy.service

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