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

30 lines
730 B

23 years ago
#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
##
## rc.tomcat -- Run-Commands for Tomcat 4.x
##
%config
tomcat4_enable="yes"
tomcat4_home="@l_prefix@/libexec/tomcat"
23 years ago
%start -p 200 -u @l_rusr@
23 years ago
if opServiceEnabled tomcat4; then
JAVA_HOME="$j2se_home"; export JAVA_HOME
CATALINA_HOME="$tomcat4_home"; export CATALINA_HOME
$CATALINA_HOME/bin/startup.sh
fi
23 years ago
%stop -p 200 -u @l_rusr@
23 years ago
if opServiceEnabled tomcat4; then
JAVA_HOME="$j2se_home"; export JAVA_HOME
CATALINA_HOME="$tomcat4_home"; export CATALINA_HOME
$CATALINA_HOME/bin/shutdown.sh
fi
%env
if opServiceEnabled tomcat4; then
CATALINA_HOME="$tomcat4_home"
export CATALINA
fi