1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

net-mgmt/riemann: several changes to the port itself

- fix reload under daemon(8) using pkill
- use new upstream master site
- add conf.d for more complex configurations
- add named daemon(8) process info

PR:		212671
Submitted by:	Dave Cottlehuber <dch@skunkwerks.at> (maintainer)
This commit is contained in:
Kurt Jaeger 2016-11-11 05:53:44 +00:00
parent bf05b4a6ea
commit 6b071f4df7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425861
4 changed files with 12 additions and 4 deletions

View File

@ -3,9 +3,9 @@
PORTNAME= riemann
PORTVERSION= 0.2.11
PORTREVISION= 1
CATEGORIES= net-mgmt java
MASTER_SITES= https://wintermute.skunkwerks.at/${PORTNAME}/releases/${PORTVERSION}/ \
http://aphyr.com/${PORTNAME}/
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTVERSION}/
MAINTAINER= dch@skunkwerks.at
COMMENT= Monitors distributed systems
@ -50,6 +50,7 @@ do-install:
${MKDIR} \
${STAGEDIR}${JAVAJARDIR} \
${STAGEDIR}${ETCDIR} \
${STAGEDIR}${ETCDIR}/conf.d \
${STAGEDIR}${RIEMANN_LOGDIR}
${INSTALL_DATA} \
${WRKSRC}/lib/${PORTNAME}.jar \

View File

@ -1,2 +1,3 @@
TIMESTAMP = 1473805695
SHA256 (riemann-0.2.11.tar.bz2) = 5e7982002685f6fa7716782c57e227e4b4eeaa4c14a77ab586aac5ecf114e933
SIZE (riemann-0.2.11.tar.bz2) = 40503519

View File

@ -56,7 +56,7 @@ load_rc_config $name
pidfile="%%RIEMANN_PIDFILE%%"
command="/usr/sbin/daemon"
command_args="-f -c -r -P ${pidfile} \
command_args="-f -t ${name} -c -r -P ${pidfile} \
${riemann_java_home}/bin/java \
${riemann_java_opts} \
-jar ${riemann_jarfile} ${riemann_config}"
@ -66,6 +66,11 @@ riemann_prestart()
{
install -o ${riemann_user} /dev/null ${pidfile}
}
start_precmd=${name}_prestart
start_precmd="${name}_prestart"
# support SIGHUP to reload config file using pkill. parent pid
# is that of daemon(8) and not of riemann's JVM instance
extra_commands="reload"
reload_cmd="pkill -SIGHUP -U ${riemann_user} -G ${riemann_group} -f Dapp=riemann"
run_rc_command "$1"

View File

@ -1,3 +1,4 @@
%%JAVAJARDIR%%/riemann.jar
@sample %%ETCDIR%%/riemann.config.sample
@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%RIEMANN_LOGDIR%%
@dir(%%RIEMANN_USER%%,%%RIEMANN_GROUP%%,0750) %%ETCDIR%%/conf.d