aports/community/iwd/iwd.initd
Jakub Jirutka 237b4db644 community/iwd: add start_wait to initd and note about race cond. with ConnMan
Closely related to 9d28d2e57cc2b9789626e9c921e08c573b1ba9b1.
2021-08-05 00:35:58 +02:00

26 lines
537 B
Plaintext

#!/sbin/openrc-run
description="iNet wireless daemon"
: ${error_logger="logger -t iwd -p daemon.info"}
: ${start_wait=50} # milliseconds
command="/usr/libexec/iwd"
command_background="yes"
command_args="
${allowed_interfaces:+"--interfaces \"$allowed_interfaces\""}
${ignored_interfaces:+"--nointerfaces \"$ignored_interfaces\""}
${command_args:-}
"
start_stop_daemon_args="
${start_wait:+--wait $start_wait}
${start_stop_daemon_args:-}
"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need dbus
before net
keyword -shutdown
}