diff options
author | dch <dch@FreeBSD.org> | 2018-02-17 06:05:07 +0800 |
---|---|---|
committer | dch <dch@FreeBSD.org> | 2018-02-17 06:05:07 +0800 |
commit | d9ce340e13180d9835f0b4ab02c595085736578f (patch) | |
tree | a5937409d582d87e6d9096bef3ddf5a09982e4c3 /databases | |
parent | 51441f6dd8abc99d3fb09dc8e9d05c8786df287c (diff) | |
download | freebsd-ports-gnome-d9ce340e13180d9835f0b4ab02c595085736578f.tar.gz freebsd-ports-gnome-d9ce340e13180d9835f0b4ab02c595085736578f.tar.zst freebsd-ports-gnome-d9ce340e13180d9835f0b4ab02c595085736578f.zip |
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
Diffstat (limited to 'databases')
-rw-r--r-- | databases/kyototycoon/Makefile | 2 | ||||
-rw-r--r-- | databases/kyototycoon/files/kyototycoon.in | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/databases/kyototycoon/Makefile b/databases/kyototycoon/Makefile index d437fcf28c1e..f6630f999f97 100644 --- a/databases/kyototycoon/Makefile +++ b/databases/kyototycoon/Makefile @@ -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 diff --git a/databases/kyototycoon/files/kyototycoon.in b/databases/kyototycoon/files/kyototycoon.in index fa45f0efb9c6..41c35220d2eb 100644 --- a/databases/kyototycoon/files/kyototycoon.in +++ b/databases/kyototycoon/files/kyototycoon.in @@ -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}" |