Annotation of /trunk/adito/adito.rc
Parent Directory | Revision Log
Revision 674 -
(hide annotations)
(download)
Mon Aug 25 23:20:49 2008 UTC (16 years, 1 month ago) by niro
File size: 959 byte(s)
Mon Aug 25 23:20:49 2008 UTC (16 years, 1 month ago) by niro
File size: 959 byte(s)
-forked for adito
1 | niro | 674 | #!/bin/bash |
2 | # $Header: /root/magellan-cvs/src/adito/adito.rc,v 1.1 2008-08-25 23:20:49 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 | # we need java runtime vars | ||
17 | source /etc/profile | ||
18 | |||
19 | ADITO_ROOT=/opt/adito | ||
20 | |||
21 | case "$1" in | ||
22 | start) | ||
23 | echo -e ${COLOREDSTAR}"Starting adito ... " | ||
24 | ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 &> /dev/null | ||
25 | evaluate_retval | ||
26 | |||
27 | update_svcstatus $1 | ||
28 | splash svc_started "$(basename $0)" 0 | ||
29 | ;; | ||
30 | |||
31 | stop) | ||
32 | echo -e ${COLOREDSTAR}"Stopping adito ... " | ||
33 | ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 &> /dev/null | ||
34 | evaluate_retval | ||
35 | |||
36 | update_svcstatus $1 | ||
37 | splash svc_stopped "$(basename $0)" 0 | ||
38 | ;; | ||
39 | |||
40 | restart) | ||
41 | $0 stop | ||
42 | sleep 1 | ||
43 | $0 start | ||
44 | ;; | ||
45 | |||
46 | status|console|dump) | ||
47 | ${ADITO_ROOT}/adito/install/platforms/linux/adito $1 | ||
48 | ;; | ||
49 | |||
50 | *) | ||
51 | echo "Usage: $0 {start|stop|restart|status|console|dump}" | ||
52 | exit 1 | ||
53 | ;; | ||
54 | esac |