aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2017-10-26 06:59:29 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 05:49:15 +0800
commit78df07df781d25560221b92fb1d11c5856027479 (patch)
tree39fb110cbf84ff20f6750d95f24bbf39a7a5548a /java
parent0468bf1b1a3732dee8659a1de062419af73b2561 (diff)
downloadfreebsd-ports-gnome-78df07df781d25560221b92fb1d11c5856027479.tar.gz
freebsd-ports-gnome-78df07df781d25560221b92fb1d11c5856027479.tar.zst
freebsd-ports-gnome-78df07df781d25560221b92fb1d11c5856027479.zip
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
Diffstat (limited to 'java')
-rw-r--r--java/wildfly10/Makefile1
-rw-r--r--java/wildfly10/files/wildfly10.in6
2 files changed, 5 insertions, 2 deletions
diff --git a/java/wildfly10/Makefile b/java/wildfly10/Makefile
index 086aea27bf8a..8ecc2783dc95 100644
--- a/java/wildfly10/Makefile
+++ b/java/wildfly10/Makefile
@@ -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}
diff --git a/java/wildfly10/files/wildfly10.in b/java/wildfly10/files/wildfly10.in
index 7c971849a33c..bb4ae95e94f3 100644
--- a/java/wildfly10/files/wildfly10.in
+++ b/java/wildfly10/files/wildfly10.in
@@ -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
}