Annotation of /smage/trunk/core/slim/mcore/files/slim.rc
Parent Directory | Revision Log
Revision 1998 -
(hide annotations)
(download)
Thu Nov 10 13:14:33 2011 UTC (12 years, 6 months ago) by niro
File size: 1258 byte(s)
Thu Nov 10 13:14:33 2011 UTC (12 years, 6 months ago) by niro
File size: 1258 byte(s)
auto added: ver bump to 1.3.2-r4
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 | niro | 1998 | #%stop: 85 |
7 | niro | 1173 | |
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 | 1654 | #start-stop-daemon --stop --quiet --exec /usr/bin/slim |
29 | # use killall here to prevent flickers of fbsplash while switching vts on killing | ||
30 | killall /usr/bin/slim | ||
31 | niro | 1173 | evaluate_retval |
32 | |||
33 | niro | 1271 | # # chvt to 1 |
34 | # if [[ ${runlevel} != reboot ]] || [[ ${runlevel} != shutdown ]] | ||
35 | # then | ||
36 | # # only do it, if fbsplash is *not* running (busybox hack) | ||
37 | # if [[ -z $(pidof fbsplash) ]] | ||
38 | # then | ||
39 | # # wait until slim was stopped - ugly hack | ||
40 | # while [[ -z $(pidof slim) ]]; do sleep 0.1; done | ||
41 | # [[ $(fgconsole) -ne 1 ]] && chvt 1 | ||
42 | # fi | ||
43 | # fi | ||
44 | niro | 1270 | |
45 | niro | 1173 | update_svcstatus $1 |
46 | splash svc_stopped "$(basename $0)" 0 | ||
47 | ;; | ||
48 | |||
49 | restart) | ||
50 | $0 stop | ||
51 | sleep 1 | ||
52 | $0 start | ||
53 | ;; | ||
54 | niro | 1271 | |
55 | niro | 1173 | status) |
56 | statusproc /usr/bin/slim | ||
57 | ;; | ||
58 | *) | ||
59 | echo "Usage: $0 {start|stop|restart|status}" | ||
60 | exit 1 | ||
61 | ;; | ||
62 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |