From owner-svn-ports-head@FreeBSD.ORG Sun Sep 8 20:56:38 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 120E0F1C; Sun, 8 Sep 2013 20:56:38 +0000 (UTC) (envelope-from crees@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F308E20E0; Sun, 8 Sep 2013 20:56:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r88KubPX055901; Sun, 8 Sep 2013 20:56:37 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r88KubsW055898; Sun, 8 Sep 2013 20:56:37 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201309082056.r88KubsW055898@svn.freebsd.org> From: Chris Rees Date: Sun, 8 Sep 2013 20:56:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r326770 - in head/java/jboss72: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2013 20:56:38 -0000 Author: crees Date: Sun Sep 8 20:56:37 2013 New Revision: 326770 URL: http://svnweb.freebsd.org/changeset/ports/326770 Log: The format for bind.address has changed, so document and alert users. At the same time, fix some errors for logging in the rc script. PR: ports/179927 Submitted by: Alexander Yerenkow (maintainer) Added: head/java/jboss72/pkg-message (contents, props changed) Modified: head/java/jboss72/Makefile head/java/jboss72/files/jboss72.in Modified: head/java/jboss72/Makefile ============================================================================== --- head/java/jboss72/Makefile Sun Sep 8 20:01:03 2013 (r326769) +++ head/java/jboss72/Makefile Sun Sep 8 20:56:37 2013 (r326770) @@ -55,6 +55,9 @@ do-build: do-install: ${MKDIR} ${PREFIX}/${DISTNAME} && cd ${JBOSSOUTPUT} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${PREFIX}/${DISTNAME} +post-install: + @${CAT} ${PKGMESSAGE} + .include .if ${OSVERSION} < 800000 Modified: head/java/jboss72/files/jboss72.in ============================================================================== --- head/java/jboss72/files/jboss72.in Sun Sep 8 20:01:03 2013 (r326769) +++ head/java/jboss72/files/jboss72.in Sun Sep 8 20:56:37 2013 (r326770) @@ -11,9 +11,9 @@ # Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%: # %%APP_SHORTNAME%%_enable (bool): Set to "YES" to enable %%APP_SHORTNAME%% -# %%APP_SHORTNAME%%_jvm_opts (str): Extra JVM flags. # %%APP_SHORTNAME%%_args (str): Optional arguments to JBoss -# %%APP_SHORTNAME%%_logging (str) JBoss log output. A pipe command may be used. +# %%APP_SHORTNAME%%_log_stdout (str) JBoss log output stdout, filename. +# %%APP_SHORTNAME%%_log_stderr (str) JBoss log output stderr, filename. # . /etc/rc.subr @@ -24,7 +24,9 @@ rcvar=%%APP_SHORTNAME%%_enable load_rc_config $name %%APP_SHORTNAME%%_enable="${%%APP_SHORTNAME%%_enable:-"NO"}" -%%APP_SHORTNAME%%_logging="${%%APP_SHORTNAME%%_logging:-">> ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> ${%%APP_SHORTNAME%%_logdir}/stderr.log"}" +%%APP_SHORTNAME%%_log_stdout="${%%APP_SHORTNAME%%_log_stdout:-"${%%APP_SHORTNAME%%_logdir}/stdout.log"}" +%%APP_SHORTNAME%%_log_stderr="${%%APP_SHORTNAME%%_log_stderr:-"${%%APP_SHORTNAME%%_logdir}/stderr.log"}" +%%APP_SHORTNAME%%_args="${%%APP_SHORTNAME%%_args:-""}" %%APP_SHORTNAME%%_sleep="${%%APP_SHORTNAME%%_sleep:-"5"}" %%APP_SHORTNAME%%_kill9="${%%APP_SHORTNAME%%_kill9:-""}" %%APP_SHORTNAME%%_additional_killall="${%%APP_SHORTNAME%%_additional_killall:-""}" @@ -45,7 +47,7 @@ JBOSS_HOME="%%APP_HOME%%" fi echo "Starting %%APP_SHORTNAME%%." - daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log + daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_args} >> ${%%APP_SHORTNAME%%_log_stdout} 2>> ${%%APP_SHORTNAME%%_log_stderr} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log sleep ${%%APP_SHORTNAME%%_sleep} # let daemon(8) and sh(1) finish before executing pgrep(1) pgrep -U ${%%APP_SHORTNAME%%_user} -f ${JBOSS_HOME}/modules > ${pidfile} Added: head/java/jboss72/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/jboss72/pkg-message Sun Sep 8 20:56:37 2013 (r326770) @@ -0,0 +1,8 @@ +To make JBoss bind to all interfaces add this to /etc/rc.conf: + +jboss72_args="-Djboss.bind.address=0.0.0.0" + +Old format (-b 0.0.0.0 are not working in 7.2). + +You can also specify any other tunables which could be parsed by start scripts. +To change JVM args, edit appropriate standalone.conf.