Annotation of /trunk/dbus/dbus.rc
Parent Directory | Revision Log
Revision 20 -
(hide annotations)
(download)
Tue May 3 15:32:54 2005 UTC (19 years, 4 months ago) by niro
File size: 854 byte(s)
Tue May 3 15:32:54 2005 UTC (19 years, 4 months ago) by niro
File size: 854 byte(s)
fixed runlevels
1 | niro | 15 | #!/bin/bash |
2 | niro | 20 | # $Header: /root/magellan-cvs/src/dbus/dbus.rc,v 1.3 2005-05-03 15:32:54 niro Exp $ |
3 | niro | 15 | |
4 | niro | 20 | #%rlevels: 0:k 1:k 6:k 7:s |
5 | #%start: 58 | ||
6 | #%stop: 50 | ||
7 | niro | 15 | |
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 |