s6-service-definitions/sv/polkitd-log/run

10 lines
415 B
Plaintext
Raw Permalink Normal View History

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