Commit f16f22bd authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fixed systemd unit file installation

parent ba2e5563
...@@ -2,9 +2,9 @@ all: haproxy-cfg ...@@ -2,9 +2,9 @@ all: haproxy-cfg
tar xf haproxy-2.4.1.tar.gz tar xf haproxy-2.4.1.tar.gz
$(MAKE) -C haproxy-2.4.1 TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_TFO=1 USE_SYSTEMD=1 $(MAKE) -C haproxy-2.4.1 TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_TFO=1 USE_SYSTEMD=1
$(MAKE) -C haproxy-2.4.1 install PREFIX=/usr $(MAKE) -C haproxy-2.4.1 install PREFIX=/usr
$(MAKE) -C haproxy-2.4.1/contrib/systemd PREFIX=/usr $(MAKE) -C haproxy-2.4.1/admin/systemd PREFIX=/usr
@echo "d /run/haproxy 755 root root -" > /usr/lib/tmpfiles.d/haproxy.conf @echo "d /run/haproxy 755 root root -" > /usr/lib/tmpfiles.d/haproxy.conf
cp haproxy-2.4.1/contrib/systemd/haproxy.service /lib/systemd/system/haproxy.service cp haproxy-2.4.1/admin/systemd/haproxy.service /lib/systemd/system/haproxy.service
systemctl enable haproxy systemctl enable haproxy
mkdir -p /etc/haproxy mkdir -p /etc/haproxy
@echo "$$HAPROXY_CFG" > /etc/haproxy/haproxy.cfg @echo "$$HAPROXY_CFG" > /etc/haproxy/haproxy.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment