Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 22:05:07 +0000 (UTC)
From:      Dave Cottlehuber <dch@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462066 - in head/databases/kyototycoon: . files
Message-ID:  <201802162205.w1GM57Jc059759@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dch
Date: Fri Feb 16 22:05:07 2018
New Revision: 462066
URL: https://svnweb.freebsd.org/changeset/ports/462066

Log:
  databases/kyototycoon: set pidfile before usage
  
  the current rc.d script uses the pidfile variable before its
  defined. This breaks the daemon script.
  
  Approved by:	jrm (mentor), sunpoet
  MFH:		2018Q1
  Sponsored by:	https://iwantmyname.com/
  Differential Revision:	https://reviews.freebsd.org/D13580

Modified:
  head/databases/kyototycoon/Makefile
  head/databases/kyototycoon/files/kyototycoon.in

Modified: head/databases/kyototycoon/Makefile
==============================================================================
--- head/databases/kyototycoon/Makefile	Fri Feb 16 20:59:38 2018	(r462065)
+++ head/databases/kyototycoon/Makefile	Fri Feb 16 22:05:07 2018	(r462066)
@@ -3,7 +3,7 @@
 
 PORTNAME=	kyototycoon
 PORTVERSION=	0.9.56
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	databases
 MASTER_SITES=	http://fallabs.com/${PORTNAME}/pkg/ \
 		LOCAL/sunpoet

Modified: head/databases/kyototycoon/files/kyototycoon.in
==============================================================================
--- head/databases/kyototycoon/files/kyototycoon.in	Fri Feb 16 20:59:38 2018	(r462065)
+++ head/databases/kyototycoon/files/kyototycoon.in	Fri Feb 16 22:05:07 2018	(r462066)
@@ -34,6 +34,8 @@ load_rc_config $name
 : ${kyototycoon_sid="1"}
 : ${kyototycoon_opts:=" -li"}
 
+pidfile="%%KYOTOTYCOON_PIDFILE%%"
+
 command="/usr/sbin/daemon"
 command_args="-f -c -r -t ${name} -P ${pidfile} \
     %%PREFIX%%/bin/ktserver \
@@ -42,7 +44,6 @@ command_args="-f -c -r -t ${name} -P ${pidfile} \
     -log ${kyototycoon_log} \
     -sid ${kyototycoon_sid} \
     ${kyototycoon_opts}"
-pidfile="%%KYOTOTYCOON_PIDFILE%%"
 
 required_dirs="${kyototycoon_dbdir}/snapshots ${kyototycoon_dbdir}/updates"
 required_files="${kyototycoon_log}"



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