1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/connman/connman.initd
Jakub Jirutka 9d28d2e57c community/connman: add --wait to initd to detect early crashes
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.
2021-08-05 00:23:17 +02:00

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
}