haproxy/haproxy.service

19 lines
582 B
SYSTEMD
Raw Permalink Normal View History

2012-02-20 00:29:09 +00:00
[Unit]
Description=HAProxy Load Balancer
2020-07-15 15:19:37 +00:00
After=network-online.target
Wants=network-online.target
2012-02-20 00:29:09 +00:00
[Service]
2020-07-15 15:19:37 +00:00
EnvironmentFile=-/etc/sysconfig/haproxy
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS
ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed
2020-07-15 15:19:37 +00:00
SuccessExitStatus=143
2018-01-05 16:00:24 +00:00
Type=notify
2012-02-20 00:29:09 +00:00
[Install]
WantedBy=multi-user.target