pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/apache-tomcat6/files Add tomcat_stop()



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e012b87d38fd
branches:  trunk
changeset: 397460:e012b87d38fd
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Wed Aug 12 21:51:49 2009 +0000

description:
Add tomcat_stop()

diffstat:

 www/apache-tomcat6/files/tomcat.sh |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 4089ed7f3d5e -r e012b87d38fd www/apache-tomcat6/files/tomcat.sh
--- a/www/apache-tomcat6/files/tomcat.sh        Wed Aug 12 21:15:31 2009 +0000
+++ b/www/apache-tomcat6/files/tomcat.sh        Wed Aug 12 21:51:49 2009 +0000
@@ -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 @@
        @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



Home | Main Index | Thread Index | Old Index