databases/valkey: Ensure valkeysentinal only starts if explicitly enabled

Incorrect variable in the valkeysentinal rc script can cause
valkeysentinal to be started even if not explicitly enabled.

PR:		281605
This commit is contained in:
Henry
2024-09-20 13:01:08 +01:00
committed by Yasuhiro Kimura
parent 39390d1008
commit 3c3e936433
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
PORTNAME= valkey
DISTVERSION= 8.0.0
PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= yasu@FreeBSD.org

View File

@@ -13,7 +13,7 @@
. /etc/rc.subr
name="valkeysentinel"
rcvar="$valkeysentinel_enable"
rcvar="${name}_enable"
command="/usr/local/bin/valkey-sentinel"
pidfile="/var/run/valkey/valkey-sentinel.pid"