Contents of /trunk/consolekit/consolekit.rc
Parent Directory | Revision Log
Revision 930 -
(show annotations)
(download)
Sun Nov 8 03:47:35 2009 UTC (14 years, 10 months ago) by niro
File size: 755 byte(s)
Sun Nov 8 03:47:35 2009 UTC (14 years, 10 months ago) by niro
File size: 755 byte(s)
-files and fixes for consolekit-0.4.1-r1
1 | #!/bin/bash |
2 | # $$ |
3 | |
4 | #%rlevels: 0:k 1:k 6:k 7:s |
5 | #%start: 65 |
6 | #%stop: 45 |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/conf.d/rc |
14 | source $rc_functions |
15 | |
16 | |
17 | case "$1" in |
18 | start) |
19 | echo -e ${COLOREDSTAR}"Starting ConsoleKit daemon ..." |
20 | start-stop-daemon \ |
21 | --start -q\ |
22 | --pidfile /var/run/ConsoleKit/pid \ |
23 | --exec /usr/sbin/console-kit-daemon -- |
24 | evaluate_retval |
25 | splash svc_started splash 0 |
26 | ;; |
27 | |
28 | stop) |
29 | echo -e ${COLOREDSTAR}"Stopping ConsoleKit daemon ..." |
30 | start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid |
31 | evaluate_retval |
32 | splash svc_stopped splash 0 |
33 | ;; |
34 | |
35 | restart) |
36 | $0 stop |
37 | sleep 1 |
38 | $0 start |
39 | ;; |
40 | |
41 | status) |
42 | statusproc /usr/sbin/console-kit-daemon |
43 | ;; |
44 | |
45 | *) |
46 | echo "Usage: $0 {start|stop|restart|status}" |
47 | exit 1 |
48 | ;; |
49 | esac |