git: cfb42af2af3e - main - sysutils/py-prometheus-zfs: Initialize rcvar
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Dec 2021 12:32:48 UTC
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=cfb42af2af3ecea743a3dfc4bdfb009d13d02076 commit cfb42af2af3ecea743a3dfc4bdfb009d13d02076 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-12-10 12:28:07 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-12-10 12:32:25 +0000 sysutils/py-prometheus-zfs: Initialize rcvar The rcvar (zfsprom_enable) must be initialized. Otherwise, rc(8) complains with the following message: /etc/rc: WARNING: $zfsprom_enable is not set properly - see rc.conf(5). --- sysutils/py-prometheus-zfs/Makefile | 2 +- sysutils/py-prometheus-zfs/files/zfsprom.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sysutils/py-prometheus-zfs/Makefile b/sysutils/py-prometheus-zfs/Makefile index 6885fafb7e0d..7af6eee556c5 100644 --- a/sysutils/py-prometheus-zfs/Makefile +++ b/sysutils/py-prometheus-zfs/Makefile @@ -3,7 +3,7 @@ PORTNAME= prometheus-zfs DISTVERSIONPREFIX= v DISTVERSION= 1.0.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/sysutils/py-prometheus-zfs/files/zfsprom.in b/sysutils/py-prometheus-zfs/files/zfsprom.in index b5636eea6344..f4e3fbfc2e49 100644 --- a/sysutils/py-prometheus-zfs/files/zfsprom.in +++ b/sysutils/py-prometheus-zfs/files/zfsprom.in @@ -21,6 +21,8 @@ rcvar="zfsprom_enable" load_rc_config "${name}" +: "${zfsprom_enable:=NO}" + pidfile="/var/run/${name}.pid" procname="%%PREFIX%%/sbin/zfsprom.py" command_interpreter="%%PYTHON_CMD%%"