Magellan Linux

Annotation of /trunk/vmware-workstation/vmware.rc6

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations) (download)
Sat Mar 26 22:52:54 2005 UTC (19 years, 7 months ago) by niro
File size: 1138 byte(s)
added

1 niro 12 #!/bin/bash
2     # $Header: /root/magellan-cvs/src/vmware-workstation/vmware.rc6,v 1.1 2005-03-26 22:52:54 niro Exp $
3    
4     #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5     #%start: 30
6     #%stop: 30
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     case "$1" in
17     start)
18     declare -i i=0
19     [ -x /etc/vmware/init.d/vmware ] && /etc/vmware/init.d/vmware start | while read output
20     do
21     if [[ ${i} -eq 0 ]]
22     then
23     SPACER=""
24     else
25     SPACER=" "
26     fi
27     [ -n "${output}" ] && echo -e ${COLOREDSTAR}"${SPACER}${output}"
28     ((i++))
29     done
30     unset i
31    
32     evaluate_retval
33     update_svcstatus $1
34     splash svc_started "$(basename $0)" 0
35     ;;
36    
37     stop)
38     declare -i i=0
39     [ -x /etc/vmware/init.d/vmware ] && /etc/vmware/init.d/vmware stop | while read output
40     do
41     if [[ ${i} -eq 0 ]]
42     then
43     SPACER=""
44     else
45     SPACER=" "
46     fi
47     [ -n "${output}" ] && echo -e ${COLOREDSTAR}"${SPACER}${output}"
48     ((i++))
49     done
50     unset i
51    
52     evaluate_retval
53     update_svcstatus $1
54     splash svc_stopped "$(basename $0)" 0
55     ;;
56    
57     restart)
58     $0 stop
59     sleep 1
60     $0 start
61     ;;
62    
63     *)
64     echo "Usage: $0 {start|stop|restart}"
65     exit 1
66     ;;
67     esac

Properties

Name Value
svn:executable *