source: packages/utils/dbus/files/dbus.init @ 28947

Last change on this file since 28947 was 28947, checked in by nico, 5 years ago

packages/dbus: use new service functions

File size: 368 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2007-2011 OpenWrt.org
3
4START=60
5
6SERVICE_PID_FILE=/var/run/dbus.pid
7
8start() {
9        mkdir -m 0755 -p /var/lib/dbus
10        mkdir -m 0755 -p /var/run/dbus
11        [ -x /usr/bin/dbus-uuidgen ] && /usr/bin/dbus-uuidgen --ensure
12        service_start /usr/sbin/dbus-daemon --system
13}
14
15stop() {
16        service_stop /usr/sbin/dbus-daemon && rm $SERVICE_PID_FILE
17}
Note: See TracBrowser for help on using the repository browser.