s6-service-definitions/sv/wpa_supplicant-log/run

10 lines
450 B
Plaintext
Raw Normal View History

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