mirror of
https://codeberg.org/andyscott/s6-scripts.git
synced 2024-11-09 22:00:56 -05:00
10 lines
363 B
Text
10 lines
363 B
Text
|
#!/bin/execlineb -P
|
||
|
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
|