mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
There's some race condition when connmand and iwd are started right after each other, connmand crashes immediatelly after start. Without --wait, OpenRC doesn't detect that the process died right after starting.
23 lines
456 B
Text
23 lines
456 B
Text
#!/sbin/openrc-run
|
|
|
|
name="ConnMan"
|
|
description="Daemon for managing internet connections"
|
|
|
|
: ${cfgfile:=/etc/connman/main.conf}
|
|
: ${start_wait=50} # milliseconds
|
|
|
|
command=/usr/sbin/connmand
|
|
command_args="$command_args -c $cfgfile --nodaemon"
|
|
command_background="yes"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
required_files="$cfgfile"
|
|
|
|
start_stop_daemon_args="
|
|
${start_wait:+--wait $start_wait}
|
|
${start_stop_daemon_args:-}
|
|
"
|
|
|
|
depend() {
|
|
need dbus
|
|
provide net
|
|
}
|