mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
databases/qdrant: Rename _flags to _args in rc.d script
Rename ${qdrant_flags} to ${qdrant_args} as the former is passed to /usr/sbin/daemon instead of intentional LOCALBASE/bin/qdrant
This commit is contained in:
parent
d841c0df8c
commit
ff8ebb3e6f
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
PORTNAME= qdrant
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.7.3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= databases
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
# qdrant(_profile)?_config (str): Full name of config file
|
||||
# Default is "%%ETCDIR%%/config.yaml" or
|
||||
# "%%ETCDIR%%/config(.profile)?.yaml
|
||||
# qdrant(_profile)?_flags (flags): Set extra flags here. More options in qdrant(1)
|
||||
# qdrant(_profile)?_args (flags): Set extra args here. More options in qdrant(1)
|
||||
# Default is empty "".
|
||||
# qdrant(_profile)?_user (user): Set user to run qdrant.
|
||||
# Default is "nobody".
|
||||
|
@ -35,7 +35,7 @@ pidfile="${_piddir}/qdrant.pid"
|
|||
: ${qdrant_config="%%ETCDIR%%/config.yaml"}
|
||||
: ${qdrant_user="nobody"}
|
||||
: ${qdrant_group="nobody"}
|
||||
: ${qdrant_flags=""}
|
||||
: ${qdrant_args=""}
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
|
@ -47,7 +47,7 @@ if [ -n "$2" ]; then
|
|||
eval qdrant_config="\${qdrant_${profile}_config:-${qdrant_config}}"
|
||||
eval qdrant_user="\${qdrant_${profile}_user:-${qdrant_user}}"
|
||||
eval qdrant_group="\${qdrant_${profile}_group:-${qdrant_group}}"
|
||||
eval qdrant_flags="\${qdrant_${profile}_flags:-${qdrant_flags}}"
|
||||
eval qdrant_args="\${qdrant_${profile}_args:-${qdrant_args}}"
|
||||
eval qdrant_post_start="\${qdrant_${profile}_post_start:-${qdrant_post_start}}"
|
||||
else
|
||||
echo "%%PREFIX%%/etc/rc.d/qdrant%%RC_SUBR_SUFFIX%%: extra argument ignored"
|
||||
|
@ -121,7 +121,7 @@ command="/usr/sbin/daemon"
|
|||
command_args="-f -S -p ${pidfile} \
|
||||
-t qdrant${_profsuffx} \
|
||||
%%PREFIX%%/bin/qdrant --config-path $qdrant_config \
|
||||
$qdrant_flags"
|
||||
$qdrant_args"
|
||||
|
||||
|
||||
start_precmd="install -d -o $qdrant_user -g $qdrant_group -m 755 $_piddir"
|
||||
|
|
Loading…
Add table
Reference in a new issue