Contents of /trunk/dbus/dbus.rc-0.23.4
Parent Directory | Revision Log
Revision 22 -
(show annotations)
(download)
Wed May 4 15:59:00 2005 UTC (19 years, 6 months ago) by niro
File size: 863 byte(s)
Wed May 4 15:59:00 2005 UTC (19 years, 6 months ago) by niro
File size: 863 byte(s)
dbus-daemon is called dbus-daemon-1 in ver 0.23.4
1 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/dbus/dbus.rc-0.23.4,v 1.1 2005-05-04 15:59:00 niro Exp $ |
3 | |
4 | #%rlevels: 0:k 1:k 6:k 7:s |
5 | #%start: 58 |
6 | #%stop: 50 |
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 | --exec /usr/bin/dbus-daemon-1 -- --system |
24 | 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 |