s6-service-definitions/sv/avahi-daemon-log/run
2022-10-05 12:05:04 -04:00

10 lines
433 B
Plaintext

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