Skip to content

Instantly share code, notes, and snippets.

@castamonte
Forked from virtualdreams/goaccess.service
Created September 9, 2020 12:28
Show Gist options
  • Select an option

  • Save castamonte/0db7fcebe9f83fd9e4f97f7287474ffc to your computer and use it in GitHub Desktop.

Select an option

Save castamonte/0db7fcebe9f83fd9e4f97f7287474ffc to your computer and use it in GitHub Desktop.
goaccess systemd service
[Unit]
Description=Goaccess Web log report.
After=network.target
[Service]
Type=simple
User=root
Group=root
Restart=always
ExecStart=/usr/local/bin/goaccess -a -g -f /var/log/nginx/access.log -o /srv/www/goaccess/index.html --real-time-html --ws-url <your url>
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment