Annotation of /trunk/sslexplorer/sslexplorer.rc
Parent Directory | Revision Log
Revision 583 -
(hide annotations)
(download)
Thu Apr 24 22:48:55 2008 UTC (16 years, 5 months ago) by niro
File size: 1000 byte(s)
Thu Apr 24 22:48:55 2008 UTC (16 years, 5 months ago) by niro
File size: 1000 byte(s)
-typo
1 | niro | 577 | #!/bin/bash |
2 | niro | 583 | # $Header: /root/magellan-cvs/src/sslexplorer/sslexplorer.rc,v 1.3 2008-04-24 22:48:55 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 | SSLEXPLORER_ROOT=/opt/sslexplorer | ||
17 | |||
18 | case "$1" in | ||
19 | start) | ||
20 | echo -e ${COLOREDSTAR}"Starting sslexplorer ... " | ||
21 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 &> /dev/null |
22 | niro | 577 | evaluate_retval |
23 | |||
24 | update_svcstatus $1 | ||
25 | splash svc_started "$(basename $0)" 0 | ||
26 | ;; | ||
27 | |||
28 | stop) | ||
29 | echo -e ${COLOREDSTAR}"Stopping sslexplorer ... " | ||
30 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 &> /dev/null |
31 | niro | 577 | evaluate_retval |
32 | |||
33 | update_svcstatus $1 | ||
34 | splash svc_stopped "$(basename $0)" 0 | ||
35 | ;; | ||
36 | |||
37 | restart) | ||
38 | $0 stop | ||
39 | sleep 1 | ||
40 | $0 start | ||
41 | ;; | ||
42 | |||
43 | status|console|dump) | ||
44 | niro | 582 | ${SSLEXPLORER_ROOT}/sslexplorer/install/platforms/linux/sslexplorer $1 |
45 | niro | 577 | ;; |
46 | |||
47 | *) | ||
48 | echo "Usage: $0 {start|stop|restart|status|console|dump}" | ||
49 | exit 1 | ||
50 | ;; | ||
51 | esac |