blob: 368deaf58d90ff275de30463f0af680559d8d99e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/bin/sh
########################################################################
# Begin dbus
#
# Description : Start dbus daemon
#
# Author : Bruce Dubbs - [email protected]
#
# Version : BLFS 7.0
#
########################################################################
### BEGIN INIT INFO
# Provides: dbus messagebus
# Required-Start:
# Should-Start: $syslog random
# Required-Stop:
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts message bus.
# Description: Starts message bus.
# X-LFS-Provided-By: BLFS
### END INIT INFO
. /lib/lsb/init-functions
#$LastChangedBy$
#$Date$
pidfile=/run/dbus/pid
socket=/run/dbus/system_bus_socket
case "$1" in
start)
log_info_msg "Starting the D-Bus Messagebus Daemon..."
mkdir -p /run/dbus
/usr/bin/dbus-uuidgen --ensure
start_daemon /usr/bin/dbus-daemon --system
evaluate_retval
;;
stop)
log_info_msg "Stopping the D-Bus Messagebus Daemon..."
killproc /usr/bin/dbus-daemon
evaluate_retval
rm -f $socket $pidfile
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc /usr/bin/dbus-daemon
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End /etc/init.d/dbus
|