Contents of /smage/trunk/extras/slim/mcore/files/slim.rc
Parent Directory | Revision Log
Revision 1173 -
(show annotations)
(download)
Fri Jan 28 00:02:01 2011 UTC (13 years, 3 months ago) by niro
File size: 785 byte(s)
Fri Jan 28 00:02:01 2011 UTC (13 years, 3 months ago) by niro
File size: 785 byte(s)
-inject initscript
1 | #!/bin/bash |
2 | # $Header: /magellan-cvs/src/xorg/xdm.rc,v 1.3 2008/12/26 02:04:07 niro Exp $ |
3 | |
4 | #%rlevels: 5:s 0:k 1:k 2:k 3:k 4:k 6:k |
5 | #%start: 95 |
6 | #%stop: 05 |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/conf.d/rc |
14 | source $rc_functions |
15 | source /etc/profile |
16 | |
17 | case $1 in |
18 | start) |
19 | echo -e ${COLOREDSTAR}"Starting slim ..." |
20 | /sbin/start-stop-daemon --start --quiet --exec /usr/bin/slim |
21 | evaluate_retval |
22 | |
23 | update_svcstatus $1 |
24 | splash svc_started "$(basename $0)" 0 |
25 | ;; |
26 | stop) |
27 | start-stop-daemon --stop --quiet --exe /usr/bin/slim |
28 | evaluate_retval |
29 | |
30 | update_svcstatus $1 |
31 | splash svc_stopped "$(basename $0)" 0 |
32 | ;; |
33 | |
34 | restart) |
35 | $0 stop |
36 | sleep 1 |
37 | $0 start |
38 | ;; |
39 | status) |
40 | statusproc /usr/bin/slim |
41 | ;; |
42 | *) |
43 | echo "Usage: $0 {start|stop|restart|status}" |
44 | exit 1 |
45 | ;; |
46 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |