aboutsummaryrefslogtreecommitdiffstats
path: root/community/connman/connman.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/connman/connman.initd')
-rw-r--r--community/connman/connman.initd20
1 files changed, 8 insertions, 12 deletions
diff --git a/community/connman/connman.initd b/community/connman/connman.initd
index 1728694274..610aabf4ce 100644
--- a/community/connman/connman.initd
+++ b/community/connman/connman.initd
@@ -1,20 +1,16 @@
#!/sbin/openrc-run
+supervisor=supervise-daemon
+
+name="Network Management Daemon"
+description="Daemon for managing internet connections"
+
+: ${cfgfile:=/etc/connman/main.conf}
-description="Connection Manager"
-cfgfile=/etc/connman/main.conf
-pidfile=/run/connman/connman.pid
command=/usr/sbin/connmand
-command_args="$command_args -n -c $cfgfile"
-command_background="yes"
+command_args="$command_args -c $cfgfile"
+command_args_foreground="--nodaemon"
depend() {
need dbus
provide net
}
-
-start_pre() {
- ebegin
- checkpath --directory ${pidfile%/*}
- ln -sf ${pidfile%/*}/resolv.conf /etc/
- eend $?
-}