summarylogtreecommitdiffstats
path: root/mullvad-vpn-log.run
diff options
context:
space:
mode:
authorFunami2021-12-02 21:19:51 +0100
committerFunami2021-12-02 21:19:51 +0100
commit55ec04a64fbcf5e79e34e16c81c76f2e9eade1b4 (patch)
treef5b670df2330af4774e68bb66019c2c37b99505f /mullvad-vpn-log.run
downloadaur-55ec04a64fbcf5e79e34e16c81c76f2e9eade1b4.tar.gz
Initial commit
Diffstat (limited to 'mullvad-vpn-log.run')
-rw-r--r--mullvad-vpn-log.run9
1 files changed, 9 insertions, 0 deletions
diff --git a/mullvad-vpn-log.run b/mullvad-vpn-log.run
new file mode 100644
index 000000000000..6a59157aea5d
--- /dev/null
+++ b/mullvad-vpn-log.run
@@ -0,0 +1,9 @@
+#!/bin/execlineb -P
+envfile /etc/s6/config/mullvad-vpn.conf
+importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
+ifelse { test -w /var/log } {
+ foreground { install -d -o s6log -g s6log /var/log/mullvad-vpn }
+ s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/mullvad-vpn
+}
+foreground { install -d -o s6log -g s6log /run/log/mullvad-vpn }
+s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/mullvad-vpn