diff options
| author | Luke Hoersten <[email protected]> | 2020-08-09 14:20:24 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-08-09 14:20:24 -0500 |
| commit | f689e65a72ae9693c0a17987c8e32d724bb9fb6c (patch) | |
| tree | 840d368a9d2dd56ed9935ed66e2b5a2b707cf520 /goaccess/templates | |
| parent | b46cf2027341c5faf34b945952eaaa1a578b8910 (diff) | |
Added periodit goaccess update role
Diffstat (limited to 'goaccess/templates')
| -rw-r--r-- | goaccess/templates/goaccess.service.j2 | 11 | ||||
| -rw-r--r-- | goaccess/templates/goaccess.timer.j2 | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/goaccess/templates/goaccess.service.j2 b/goaccess/templates/goaccess.service.j2 new file mode 100644 index 0000000..aa1e929 --- /dev/null +++ b/goaccess/templates/goaccess.service.j2 @@ -0,0 +1,11 @@ +[Unit] +Description=GoAccess + +[Service] +Type=oneshot +ExecStart=/usr/bin/goaccess {{goaccess_http_log}} -o {{goaccess_output_dest}} --log-format=COMBINED --no-progress --no-parsing-spinner +RemainAfterExit=true +Environment=HOME=/var/run + +[Install] +WantedBy=multi-user.target diff --git a/goaccess/templates/goaccess.timer.j2 b/goaccess/templates/goaccess.timer.j2 new file mode 100644 index 0000000..7f68e81 --- /dev/null +++ b/goaccess/templates/goaccess.timer.j2 @@ -0,0 +1,9 @@ +[Unit] +Description=GoAccess refresh timer + +[Timer] +OnCalendar={{goaccess_timer_freq}} +Unit=goaccess.service + +[Install] +WantedBy=timers.target |
