Magellan Linux

Annotation of /trunk/dbus/dbus.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations) (download)
Tue May 3 14:12:29 2005 UTC (19 years, 6 months ago) by niro
File size: 855 byte(s)
typo

1 niro 15 #!/bin/bash
2 niro 17 # $Header: /root/magellan-cvs/src/dbus/dbus.rc,v 1.2 2005-05-03 14:12:29 niro Exp $
3 niro 15
4     #%rlevels: 1:s 2:s 3:s 4:s 5:s
5     #%start: 99
6     #%stop:
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16    
17     case "$1" in
18     start)
19     echo -e ${COLOREDSTAR}"Starting D-BUS system messagebus ..."
20     start-stop-daemon \
21     --start \
22     --pidfile /var/run/dbus.pid \
23 niro 17 --exec /usr/bin/dbus-daemon -- --system
24 niro 15 evaluate_retval
25     splash svc_started splash 0
26     ;;
27    
28     stop)
29     echo -e ${COLOREDSTAR}"Stopping D-BUS system messagebus ..."
30     start-stop-daemon --stop --pidfile /var/run/dbus.pid
31     evaluate_retval
32    
33     # remove pid file if it exist
34     [ -f /var/run/dbus.pid ] && rm /var/run/dbus.pid
35    
36     splash svc_stopped splash 0
37     ;;
38    
39     restart)
40     $0 stop
41     sleep 1
42     $0 start
43     ;;
44    
45     *)
46     echo "Usage: $0 {start|stop|restart}"
47     exit 1
48     ;;
49     esac