summaryrefslogtreecommitdiffstats
path: root/network/haproxy/README.SLACKWARE
diff options
context:
space:
mode:
author Badchay2022-04-16 05:49:08 +0200
committer Willy Sudiarto Raharjo2022-04-16 07:12:45 +0200
commit61d912f9e6de95044e7602f44591c409d0efd377 (patch)
tree270e7bf1c718aea80055ddafaf5e9c527c84d234 /network/haproxy/README.SLACKWARE
parent3ba51ec5d0f1d7e6397b933482b8875b1874cc8e (diff)
downloadslackbuilds-61d912f9e6de95044e7602f44591c409d0efd377.tar.gz
network/haproxy: Updated for version 2.5.5.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/haproxy/README.SLACKWARE')
-rw-r--r--network/haproxy/README.SLACKWARE49
1 files changed, 49 insertions, 0 deletions
diff --git a/network/haproxy/README.SLACKWARE b/network/haproxy/README.SLACKWARE
new file mode 100644
index 0000000000..b83472439e
--- /dev/null
+++ b/network/haproxy/README.SLACKWARE
@@ -0,0 +1,49 @@
+--------
+Logging
+--------
+
+If you want to enable logging, please first refer to HAProxy manual
+on how to enable logging and how to select which events to log.
+
+HAProxy log forwarding works fine with Slackware's sysklogd.
+
+There are example files located in /usr/doc/haproxy-*/examples
+The files are called syslog.example and logrotate.example.
+
+You might want to add something like this to your haproxy.cfg file:
+
+global
+ log /dev/log local0
+
+--------
+Automatic starting/stopping upon system start/shutdown
+--------
+
+To start HAProxy automatically when system is booted,
+add the following lines to /etc/rc.d/rc.local:
+
+ if [ -x /etc/rc.d/rc.haproxy ]; then
+ /etc/rc.d/rc.haproxy start
+ fi
+
+To stop HAProxy on system shutdown, add following lines
+to /etc/rc.d/rc.local_shutdown
+
+ if [ -x /etc/rc.d/rc.haproxy ]; then
+ /etc/rc.d/rc.haproxy stop
+ fi
+
+--------
+Privileges
+--------
+
+Like with the most rc scripts /etc/rc.d/rc.haproxy should be
+run as root. You can easily drop process privileges by specifying
+another user (and group) in the main configuration file.
+
+Add something like this to haproxy.cfg:
+
+global
+ user nobody
+ group nogroup
+