Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 201 - (show annotations)
Sun Oct 4 15:01:40 2009 UTC (3 years, 7 months ago) by cjg
File size: 402 byte(s)
importing opt
1 #!/bin/sh
2 #
3 # /etc/rc.d/dbus: start/stop dbus messagebus daemon
4 #
5
6 case $1 in
7 start)
8 if [ ! -f /var/lib/dbus/machine-id ]
9 then
10 /usr/bin/dbus-uuidgen --ensure
11 fi
12 /usr/sbin/dbus-daemon --system
13 ;;
14 stop)
15 killall -q /usr/sbin/dbus-daemon
16 rm -f /var/run/dbus/dbus.pid
17 ;;
18 restart)
19 $0 stop
20 sleep 2
21 $0 start
22 ;;
23 *)
24 echo "Usage: $0 [start|stop|restart]"
25 ;;
26 esac
27
28 # End of file