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
This commit is contained in:
parent
3b52e3a783
commit
453bf15e6f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=462066
@ -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
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user