Created
May 25, 2017 09:41
-
-
Save DRN88/c312450067d998b6cdbef0c4ddebe684 to your computer and use it in GitHub Desktop.
A haproxy systemd service to run haproxy-merge-configs.sh before starting haproxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=HAProxy Load Balancer | |
After=syslog.target network.target | |
[Service] | |
EnvironmentFile=/etc/sysconfig/haproxy | |
ExecStartPre=/etc/haproxy/haproxy-merge-configs.sh | |
ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS | |
ExecReload=/bin/kill -USR2 $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment