diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-03-01 19:59:10 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-03-01 19:59:10 +0530 |
commit | d0e06c7eea2b301845c38b481f0076097e069606 (patch) | |
tree | c112a9461495afa929d13027858d0fa20b641f30 /pppd/pppd-log/run | |
parent | 9bb6b9f7d5246c7a896c909c40370dc75644d4cf (diff) |
Diffstat (limited to 'pppd/pppd-log/run')
-rw-r--r-- | pppd/pppd-log/run | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pppd/pppd-log/run b/pppd/pppd-log/run new file mode 100644 index 0000000..50ee7d8 --- /dev/null +++ b/pppd/pppd-log/run @@ -0,0 +1,9 @@ +#!/bin/execlineb -P +envfile /etc/s6/config/pppd.conf +importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES +ifelse { test -w /var/log } { + foreground { install -d -o s6log -g s6log /var/log/pppd } + s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/pppd +} +foreground { install -d -o s6log -g s6log /run/log/pppd } +s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/pppd |