systemd: run goaccess run every 10 minutes in non-live mode

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-04-18 04:36:37 +05:30
parent 4994dd060a
commit 8ee6ac80de
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=Run goaccess every 10 minutes to update statistics
Requires=goaccess.service
[Timer]
Unit=goaccess.service
OnUnitInactiveSec=10m
RandomizedDelaySec=10m
AccuracySec=1s
[Install]
WantedBy=timers.target