You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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
}