aboutsummaryrefslogtreecommitdiffstats
path: root/community/connman/connman.initd
blob: be85310560690a0e15cf507aec43acb469829f23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
}