Annotation of /trunk/sslexplorer/sslexplorer.rc
Parent Directory | Revision Log
Revision 584 -
(hide annotations)
(download)
Thu Apr 24 22:49:34 2008 UTC (16 years, 5 months ago) by niro
File size: 1049 byte(s)
Thu Apr 24 22:49:34 2008 UTC (16 years, 5 months ago) by niro
File size: 1049 byte(s)
-need java runtime vars
1 | niro | 577 | #!/bin/bash |
2 | niro | 584 | # $Header: /root/magellan-cvs/src/sslexplorer/sslexplorer.rc,v 1.4 2008-04-24 22:49:34 niro Exp $ |
3 | niro | 577 | |
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 | niro | 584 | # we need java runtime vars |
17 | source /etc/profile | ||
18 | |||
19 | niro | 577 | SSLEXPLORER_ROOT=/opt/sslexplorer |
20 | |||
21 | case "$1" in | ||
22 | start) | ||
23 | echo -e ${COLOREDSTAR}"Starting sslexplorer ... " | ||
24 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 &> /dev/null |
25 | niro | 577 | evaluate_retval |
26 | |||
27 | update_svcstatus $1 | ||
28 | splash svc_started "$(basename $0)" 0 | ||
29 | ;; | ||
30 | |||
31 | stop) | ||
32 | echo -e ${COLOREDSTAR}"Stopping sslexplorer ... " | ||
33 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 &> /dev/null |
34 | niro | 577 | 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 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 |
48 | niro | 577 | ;; |
49 | |||
50 | *) | ||
51 | echo "Usage: $0 {start|stop|restart|status|console|dump}" | ||
52 | exit 1 | ||
53 | ;; | ||
54 | esac |