mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-15 03:57:01 +05:30
systemd: run goaccess run every 10 minutes in non-live mode
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
4994dd060a
commit
8ee6ac80de
3 changed files with 29 additions and 1 deletions
12
systemd_units/goaccess-update.timer
Normal file
12
systemd_units/goaccess-update.timer
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue