21 lines
359 B
Plaintext
21 lines
359 B
Plaintext
|
function tcat
|
||
|
{
|
||
|
(( $# != 1 )) && return 64
|
||
|
case $1 in
|
||
|
log)
|
||
|
(jr && less ../bundles/tomcat-*/logs/catalina.out)
|
||
|
;;
|
||
|
start)
|
||
|
pgrep -f tomcat && return 1
|
||
|
(jr && ../bundles/tomcat-*/bin/catalina.sh jpda start) >/dev/null
|
||
|
;;
|
||
|
stop)
|
||
|
pgrep -f tomcat || return 1
|
||
|
(jr && ../bundles/tomcat-*/bin/shutdown.sh) >/dev/null
|
||
|
;;
|
||
|
*)
|
||
|
return 64
|
||
|
;;
|
||
|
esac
|
||
|
}
|