s6-services/smartd-log/run

10 lines
372 B
Text
Raw Normal View History

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