Revert "haproxy: Make /dev/log available in chroot"

This reverts commit 699f0aa710.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-11-07 12:30:50 +00:00
parent 9f60aa9679
commit c19d29f701
2 changed files with 1 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = haproxy
PAK_VER = 6
PAK_VER = 7
DEPS = ""

View File

@@ -11,15 +11,6 @@
case "${1}" in
start)
# Prepare chroot
mkdir -p /var/lib/haproxy/dev
# Create link for syslog socket
if ! mountpoint /var/lib/haproxy/dev/log &>/dev/null; then
touch /var/lib/haproxy/dev/log
mount --bind /dev/log /var/lib/haproxy/dev/log
fi
boot_mesg "Starting HAProxy..."
loadproc /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg \
-p /var/run/haproxy.pid
@@ -28,11 +19,6 @@ case "${1}" in
stop)
boot_mesg "Stopping HAProxy..."
killproc /usr/sbin/haproxy
# umount /dev/log
if mountpoint /var/lib/haproxy/dev/log &>/dev/null; then
umount /var/lib/haproxy/dev/log
fi
;;
reload)