summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-09 12:10:41 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-09 12:10:41 +0200
commita010684218f699e56d685bb269226365bc53fc6c (patch)
treed2778169b1876b5cabc35785b782bf25d51b3550 /playbooks.d/webserver-nginx
parentb845e92436a2d5a5943a2be13137e8b1d10cec6e (diff)
Systemd is still shit
Diffstat (limited to 'playbooks.d/webserver-nginx')
-rw-r--r--playbooks.d/webserver-nginx/share/goaccess.service7
1 files changed, 6 insertions, 1 deletions
diff --git a/playbooks.d/webserver-nginx/share/goaccess.service b/playbooks.d/webserver-nginx/share/goaccess.service
index 19f99de..3b8156c 100644
--- a/playbooks.d/webserver-nginx/share/goaccess.service
+++ b/playbooks.d/webserver-nginx/share/goaccess.service
@@ -7,7 +7,12 @@ Type = simple
User = ${user}
Group = ${group}
Restart = always
-RuntimeDirectory = goaccess
+#RuntimeDirectory = goaccess
+#RuntimeDirectoryMode = 0740
+PermissionsStartOnly=true
+ExecStartPre=mkdir -p -- /run/goaccess
+ExecStartPre=chown -- www-data:www-data /run/goaccess
+ExecStartPre=chmod -- 0740 /run/goaccess
ExecStart = sh -c "goaccess -a -f /var/log/nginx/access/%i/* -o %t/%i.html --real-time-html --ws-url %i"
[Install]