s6-services/tomoyo-auditd-log/run

10 lines
445 B
Text
Raw Normal View History

2023-04-13 22:48:04 -04:00
#!/bin/execlineb -P
2023-04-13 22:55:49 -04:00
envfile /etc/s6/config/tomoyo-auditd.conf
2023-04-13 22:48:04 -04:00
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/tomoyo-auditd
}
foreground { install -d -o s6log -g s6log /run/log/tomoyo-auditd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/tomoyo-auditd