Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2017 23:01:36 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r452898 - in head/java/wildfly90: . files
Message-ID:  <201710252301.v9PN1axf011732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Wed Oct 25 23:01:36 2017
New Revision: 452898
URL: https://svnweb.freebsd.org/changeset/ports/452898

Log:
  java/wildfly90: add support for status command and remove pidfile on
  shutdown (see r452897).

Modified:
  head/java/wildfly90/Makefile
  head/java/wildfly90/files/wildfly90.in

Modified: head/java/wildfly90/Makefile
==============================================================================
--- head/java/wildfly90/Makefile	Wed Oct 25 22:59:29 2017	(r452897)
+++ head/java/wildfly90/Makefile	Wed Oct 25 23:01:36 2017	(r452898)
@@ -3,6 +3,7 @@
 
 PORTNAME=	wildfly90
 PORTVERSION=	9.0.2
+PORTREVISION=	1
 CATEGORIES=	java www
 MASTER_SITES=	http://download.jboss.org/wildfly/${WILDFLY_VERSION}/
 DISTNAME=	wildfly-${WILDFLY_VERSION}

Modified: head/java/wildfly90/files/wildfly90.in
==============================================================================
--- head/java/wildfly90/files/wildfly90.in	Wed Oct 25 22:59:29 2017	(r452897)
+++ head/java/wildfly90/files/wildfly90.in	Wed Oct 25 23:01:36 2017	(r452898)
@@ -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,6 +52,8 @@ export JAVA_VERSION
 		install -d -o ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir}
 	fi
 
+	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}
 
@@ -78,6 +81,7 @@ export JAVA_VERSION
 			sleep ${%%APP_SHORTNAME%%_sleep}
 			killall ${%%APP_SHORTNAME%%_additional_killall}
 		fi
+		rm ${pidfile}
 	fi
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710252301.v9PN1axf011732>