#!/bin/bash # $Header: /root/magellan-cvs/src/dbus/dbus.rc,v 1.1 2005-05-02 21:15:16 niro Exp $ #%rlevels: 1:s 2:s 3:s 4:s 5:s #%start: 99 #%stop: #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-1 -- --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