Contents of /smage/trunk/core/slim/mcore/files/slim.rc
Parent Directory | Revision Log
Revision 1270 -
(show annotations)
(download)
Fri Feb 4 21:40:21 2011 UTC (13 years, 4 months ago) by niro
File size: 1125 byte(s)
Fri Feb 4 21:40:21 2011 UTC (13 years, 4 months ago) by niro
File size: 1125 byte(s)
auto added: ver bump to 1.3.2-r1
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: 3:s 0: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 | rc_print "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 | rc_print "Stopping slim ..." |
28 | start-stop-daemon --stop --quiet --exe /usr/bin/slim |
29 | evaluate_retval |
30 | |
31 | # chvt to 1 |
32 | if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]] |
33 | then |
34 | # only do it, if fbsplash is *not* running (busybox hack) |
35 | if [[ -z $(pidof fbsplash) ]] |
36 | then |
37 | # wait until slim was stopped - ugly hack |
38 | while [[ -z $(pidof slim) ]]; do sleep 0.1; done |
39 | [[ $(fgconsole) -ne 1 ]] && chvt 1 |
40 | fi |
41 | fi |
42 | |
43 | update_svcstatus $1 |
44 | splash svc_stopped "$(basename $0)" 0 |
45 | ;; |
46 | |
47 | restart) |
48 | $0 stop |
49 | sleep 1 |
50 | $0 start |
51 | ;; |
52 | status) |
53 | statusproc /usr/bin/slim |
54 | ;; |
55 | *) |
56 | echo "Usage: $0 {start|stop|restart|status}" |
57 | exit 1 |
58 | ;; |
59 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |