Revision 4819
Added by daigle about 15 years ago
tomcat5.5 | ||
---|---|---|
21 | 21 |
export LANG |
22 | 22 |
fi |
23 | 23 |
|
24 |
. /lib/lsb/init-functions |
|
25 |
. /etc/default/rcS |
|
26 |
|
|
27 | 24 |
function start { |
28 | 25 |
if [ -z "$JAVA_HOME" ]; then |
29 |
log_failure_msg "no JDK found - please set JAVA_HOME"
|
|
26 |
echo "no JDK found - please set JAVA_HOME"
|
|
30 | 27 |
exit 1 |
31 | 28 |
fi |
32 | 29 |
|
33 | 30 |
if [ ! -d "$CATALINA_HOME/conf" ]; then |
34 |
log_failure_msg "invalid CATALINA_HOME specified"
|
|
31 |
echo "invalid CATALINA_HOME specified"
|
|
35 | 32 |
exit 1 |
36 | 33 |
fi |
37 | 34 |
|
38 | 35 |
log_daemon_msg "Starting $DESC" |
39 | 36 |
$CATALINA_HOME/bin/startup.sh |
40 |
log_end_msg 0
|
|
37 |
echo 0
|
|
41 | 38 |
} |
42 | 39 |
|
43 | 40 |
function stop { |
44 |
log_daemon_msg "Stopping $DESC"
|
|
41 |
echo "Stopping $DESC"
|
|
45 | 42 |
$CATALINA_HOME/bin/shutdown.sh |
46 |
log_end_msg 0
|
|
43 |
echo 0
|
|
47 | 44 |
} |
48 | 45 |
|
49 | 46 |
case "$1" in |
... | ... | |
59 | 56 |
start |
60 | 57 |
;; |
61 | 58 |
*) |
62 |
log_success_msg "Usage: $0 {start|stop|restart}"
|
|
59 |
echo "Usage: $0 {start|stop|restart}"
|
|
63 | 60 |
exit 1 |
64 | 61 |
;; |
65 | 62 |
esac |
Also available in: Unified diff
distribute perl autosplit.ix file with metacat. change tomcat startup script output to echos.