diff options
Diffstat (limited to 'net-analyzer/goaccess/files')
-rw-r--r-- | net-analyzer/goaccess/files/goaccess.confd | 8 | ||||
-rw-r--r-- | net-analyzer/goaccess/files/goaccess.initd | 14 | ||||
-rw-r--r-- | net-analyzer/goaccess/files/goaccess.service | 15 | ||||
-rw-r--r-- | net-analyzer/goaccess/files/goaccess.tmpfile | 1 |
4 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/goaccess/files/goaccess.confd b/net-analyzer/goaccess/files/goaccess.confd new file mode 100644 index 000000000000..4ff75a1a4ff6 --- /dev/null +++ b/net-analyzer/goaccess/files/goaccess.confd @@ -0,0 +1,8 @@ +# Config file for /etc/init.d/goaccess + +# Various options. +# run `goaccess --help` for valid cmdline options +OPTS="--user-name=goaccess --pid-file=/run/goaccess/goaccess.pid -o /var/lib/goaccess/goaccess.html -l /var/log/goaccess/goaccess.log" + +# GoAccess config file +#CONFIG="/etc/goaccess/goaccess.conf" diff --git a/net-analyzer/goaccess/files/goaccess.initd b/net-analyzer/goaccess/files/goaccess.initd new file mode 100644 index 000000000000..be0059588396 --- /dev/null +++ b/net-analyzer/goaccess/files/goaccess.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/goaccess" +name="GoAccess" +description="Real-time web log analyzer" +config="${CONFIG:-/etc/goaccess/goaccess.conf}" +command_args="--real-time-html --daemonize -p $config ${OPTS}" +start_stop_daemon_args="-q" + +depend() { + need net +} diff --git a/net-analyzer/goaccess/files/goaccess.service b/net-analyzer/goaccess/files/goaccess.service new file mode 100644 index 000000000000..8fab5f9b7c56 --- /dev/null +++ b/net-analyzer/goaccess/files/goaccess.service @@ -0,0 +1,15 @@ +[Unit] +Description=Real-time web log analyzer +After=network.target + +[Service] +Type=simple +User=root +Group=root +Restart=always +ExecStart=/usr/bin/goaccess --real-time-html --daemonize -p /etc/goaccess/goaccess.conf --user-name=goaccess -o /var/lib/goaccess/goaccess.html -l /var/log/goaccess/goaccess.log +StandardOutput=null +StandardError=null + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/goaccess/files/goaccess.tmpfile b/net-analyzer/goaccess/files/goaccess.tmpfile new file mode 100644 index 000000000000..caee9ffff853 --- /dev/null +++ b/net-analyzer/goaccess/files/goaccess.tmpfile @@ -0,0 +1 @@ +d /run/goaccess 0755 goaccess goaccess |