Magellan Linux

Contents of /trunk/sslexplorer/sslexplorer.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations) (download)
Thu Apr 24 20:20:24 2008 UTC (16 years, 6 months ago) by niro
File size: 913 byte(s)
-initial release

1 #!/bin/bash
2 # $Header: /root/magellan-cvs/src/sslexplorer/sslexplorer.rc,v 1.1 2008-04-24 20:20:24 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 SSLEXPLORER_ROOT=/opt/sslexplorer
17
18 case "$1" in
19 start)
20 echo -e ${COLOREDSTAR}"Starting sslexplorer ... "
21 ${SSLEXPLORER_ROOT}/init.d/sslexplorer $1 &> /dev/null
22 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 ${SSLEXPLORER_ROOT}/init.d/sslexplorer $1 &> /dev/null
31 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 ${SSLEXPLORER_ROOT}/init.d/sslexplorer $1
45 ;;
46
47 *)
48 echo "Usage: $0 {start|stop|restart|status|console|dump}"
49 exit 1
50 ;;
51 esac