Add tomcat_stop()
This commit is contained in:
parent
bb6892480b
commit
0edba06367
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue