summaryrefslogtreecommitdiff
path: root/dbus/rc.dbus
blob: b333247785e40367cba5e2916ae60d571e99fc56 (plain)
    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

Generated by cgit