From owner-svn-ports-all@freebsd.org Wed Oct 25 22:59:30 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C526CE56096; Wed, 25 Oct 2017 22:59:30 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86532AA7; Wed, 25 Oct 2017 22:59:30 +0000 (UTC) (envelope-from olgeni@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9PMxTlY008656; Wed, 25 Oct 2017 22:59:29 GMT (envelope-from olgeni@FreeBSD.org) Received: (from olgeni@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9PMxTJ4008654; Wed, 25 Oct 2017 22:59:29 GMT (envelope-from olgeni@FreeBSD.org) Message-Id: <201710252259.v9PMxTJ4008654@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olgeni set sender to olgeni@FreeBSD.org using -f From: Jimmy Olgeni Date: Wed, 25 Oct 2017 22:59:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r452897 - in head/java/wildfly10: . files X-SVN-Group: ports-head X-SVN-Commit-Author: olgeni X-SVN-Commit-Paths: in head/java/wildfly10: . files X-SVN-Commit-Revision: 452897 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 22:59:30 -0000 Author: olgeni Date: Wed Oct 25 22:59:29 2017 New Revision: 452897 URL: https://svnweb.freebsd.org/changeset/ports/452897 Log: java/wildfly10: add support for status command and remove pidfile on shutdown. While I'm here, fix whitespace, and add APP_SHORTNAME to the console output to make it clear who is doing what. PR: 220513 Submitted by: soumar@linux.fjfi.cvut.cz Approved by: maintainer timeout Modified: head/java/wildfly10/Makefile head/java/wildfly10/files/wildfly10.in Modified: head/java/wildfly10/Makefile ============================================================================== --- head/java/wildfly10/Makefile Wed Oct 25 22:12:16 2017 (r452896) +++ head/java/wildfly10/Makefile Wed Oct 25 22:59:29 2017 (r452897) @@ -3,6 +3,7 @@ PORTNAME= wildfly10 PORTVERSION= 10.1.0 +PORTREVISION= 1 CATEGORIES= java www MASTER_SITES= http://download.jboss.org/wildfly/${WILDFLY_VERSION}/ DISTNAME= wildfly-${WILDFLY_VERSION} Modified: head/java/wildfly10/files/wildfly10.in ============================================================================== --- head/java/wildfly10/files/wildfly10.in Wed Oct 25 22:12:16 2017 (r452896) +++ head/java/wildfly10/files/wildfly10.in Wed Oct 25 22:59:29 2017 (r452897) @@ -38,6 +38,7 @@ load_rc_config $name start_cmd="%%APP_SHORTNAME%%_start" stop_cmd="%%APP_SHORTNAME%%_stop" pidfile="%%PID_FILE%%" +status_cmd="%%APP_SHORTNAME%%_status" WILDFLY_HOME="%%APP_HOME%%" #minimal requirements must be set for our javavmwrapper @@ -51,8 +52,8 @@ export JAVA_VERSION install -d -o ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir} fi - echo "Making sure all writeable dirs belongs to proper user/group" - chown -R ${%%APP_SHORTNAME%%_user}:${%%APP_SHORTNAME%%_group} ${WILDFLY_HOME}/standalone + echo "%%APP_SHORTNAME%%: making sure all writeable dirs belong to proper user/group" + chown -R ${%%APP_SHORTNAME%%_user}:${%%APP_SHORTNAME%%_group} ${WILDFLY_HOME}/standalone echo "Starting %%APP_SHORTNAME%%." daemon -u ${%%APP_SHORTNAME%%_user} ${WILDFLY_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_args} >> ${%%APP_SHORTNAME%%_log_stdout} 2>> ${%%APP_SHORTNAME%%_log_stderr} @@ -80,6 +81,7 @@ export JAVA_VERSION sleep ${%%APP_SHORTNAME%%_sleep} killall ${%%APP_SHORTNAME%%_additional_killall} fi + rm ${pidfile} fi }