Skip to content

Instantly share code, notes, and snippets.

@virtualdreams
Created April 4, 2017 15:16
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save virtualdreams/77aff3c8d015daf2abdda763b40f1e76 to your computer and use it in GitHub Desktop.
Save virtualdreams/77aff3c8d015daf2abdda763b40f1e76 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