The load_rc_config need to happen before the : ${influx_flags:=xxx} since these
variables are used in for example command_args=xxx. the colon construct only sets the variable if it is not set. Approved-by: maintainer
This commit is contained in:
parent
7c2ff7c417
commit
be045c0f95
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413757
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
PORTNAME= influxdb
|
||||
PORTVERSION= 0.12.1
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= databases net-mgmt
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
name="influxd"
|
||||
rcvar=influxd_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${influxd_enable:="NO"}
|
||||
: ${influxd_user:="%%INFLUXD_USER%%"}
|
||||
|
@ -35,7 +36,7 @@ rcvar=influxd_enable
|
|||
influxd_pidfile="%%INFLUXD_PIDDIR%%${name}.pid"
|
||||
procname="%%PREFIX%%/bin/${name}"
|
||||
command=/usr/sbin/daemon
|
||||
command_args=" -c -p ${influxd_pidfile} ${procname} ${influxd_options}"
|
||||
command_args="-c -p ${influxd_pidfile} ${procname} ${influxd_options}"
|
||||
start_precmd="influxd_precmd"
|
||||
|
||||
influxd_precmd()
|
||||
|
@ -43,5 +44,4 @@ influxd_precmd()
|
|||
install -o ${influxd_user} /dev/null ${influxd_pidfile}
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Reference in a new issue