Debian Codegraph @

support/init.d.examples/dbus.in

raw
1 #!@SBINDIR@/openrc-run
2 # Copyright (c) 2007-2015 The OpenRC Authors.
3 # See the Authors file at the top-level directory of this distribution and
4 # https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
5 #
6 # This file is part of OpenRC. It is subject to the license terms in
7 # the LICENSE file found in the top-level directory of this
8 # distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
9 # This file may not be copied, modified, propagated, or distributed
10 # except according to the terms contained in the LICENSE file.
11
12 command=/bin/dbus-daemon
13 pidfile=/var/run/dbus/pid
14 command_args="${dbusd_args---system}"
15 name="Message Bus Daemon"
16
17 depend()
18 {
19 need localmount net
20 after bootmisc
21 }
22
23 start_pre()
24 {
25 mkdir -p $(dirname $pidfile)
26 }