mirror of
https://codeberg.org/andyscott/s6-scripts.git
synced 2024-12-22 18:33:12 -05:00
10 lines
410 B
Text
10 lines
410 B
Text
|
#!/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 }
|
||
|
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/smartd
|
||
|
}
|
||
|
foreground { install -d -o s6log -g s6log /run/log/smartd }
|
||
|
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/smartd
|