s6-services/klogd-log/run

11 lines
428 B
Text
Raw Normal View History

2023-04-13 22:48:04 -04:00
#!/bin/execlineb -P
# See: https://git.skarnet.org/cgi-bin/cgit.cgi/s6/tree/examples
envfile /etc/s6/config/klogd.conf
importas -sCuD "s2000000 n3 t" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o root -g root /var/log/klogd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/klogd
}
foreground { install -d -o root -g root /run/log/klogd }
exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/klogd