Annotation of /smage/trunk/extras/slim/mcore/files/slim.rc
Parent Directory | Revision Log
Revision 1174 -
(hide annotations)
(download)
Fri Jan 28 17:48:55 2011 UTC (13 years, 3 months ago) by niro
File size: 783 byte(s)
Fri Jan 28 17:48:55 2011 UTC (13 years, 3 months ago) by niro
File size: 783 byte(s)
-fixed runlevels and use rc_print instead of echo
1 | niro | 1173 | #!/bin/bash |
2 | # $Header: /magellan-cvs/src/xorg/xdm.rc,v 1.3 2008/12/26 02:04:07 niro Exp $ | ||
3 | |||
4 | niro | 1174 | #%rlevels: 3:s 0:k |
5 | niro | 1173 | #%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 | niro | 1174 | rc_print "Starting slim ..." |
20 | niro | 1173 | /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 | niro | 1174 | rc_print "Stopping slim ..." |
28 | niro | 1173 | start-stop-daemon --stop --quiet --exe /usr/bin/slim |
29 | evaluate_retval | ||
30 | |||
31 | update_svcstatus $1 | ||
32 | splash svc_stopped "$(basename $0)" 0 | ||
33 | ;; | ||
34 | |||
35 | restart) | ||
36 | $0 stop | ||
37 | sleep 1 | ||
38 | $0 start | ||
39 | ;; | ||
40 | status) | ||
41 | statusproc /usr/bin/slim | ||
42 | ;; | ||
43 | *) | ||
44 | echo "Usage: $0 {start|stop|restart|status}" | ||
45 | exit 1 | ||
46 | ;; | ||
47 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |