#!/bin/bash # $Header: /root/magellan-cvs/src/dbus/dbus.rc,v 1.3 2005-05-03 15:32:54 niro Exp $ #%rlevels: 0:k 1:k 6:k 7:s #%start: 58 #%stop: 50 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting D-BUS system messagebus ..." start-stop-daemon \ --start \ --pidfile /var/run/dbus.pid \ --exec /usr/bin/dbus-daemon -- --system evaluate_retval splash svc_started splash 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping D-BUS system messagebus ..." start-stop-daemon --stop --pidfile /var/run/dbus.pid evaluate_retval # remove pid file if it exist [ -f /var/run/dbus.pid ] && rm /var/run/dbus.pid splash svc_stopped splash 0 ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac