Add tomcat_stop()

This commit is contained in:
adrianp 2009-08-12 21:51:49 +00:00
parent bb6892480b
commit 0edba06367

View file

@ -1,6 +1,6 @@
#! @RCD_SCRIPTS_SHELL@
#
# $NetBSD: tomcat.sh,v 1.2 2009/08/12 20:07:57 adrianp Exp $
# $NetBSD: tomcat.sh,v 1.3 2009/08/12 21:51:49 adrianp Exp $
#
# PROVIDE: tomcat
# REQUIRE: DAEMON
@ -64,6 +64,14 @@ tomcat_start()
@SU@ ${tomcat_user} -c "${command} start"
}
tomcat_stop()
{
rc_pid=$(check_pidfile $pidfile "java")
@SU@ ${tomcat_user} -c "${command} stop"
wait_for_pids $rc_pid
}
tomcat_run()
{
cd ${CATALINA_HOME}/logs