Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2026 22:58:39 +0000
From:      =?utf-8?Q?Jes=C3=BAs?= Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d364dde862e0 - main - security/py-privleap: Implement reload command in rc(8) script
Message-ID:  <6a14d41f.3367e.44404fe6@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dtxdf:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d364dde862e0660d2cad7aca13e5b30955815b38

commit d364dde862e0660d2cad7aca13e5b30955815b38
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2026-05-25 22:58:05 +0000
Commit:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
CommitDate: 2026-05-25 22:58:27 +0000

    security/py-privleap: Implement reload command in rc(8) script
---
 security/py-privleap/Makefile           |  1 +
 security/py-privleap/files/privleapd.in | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/security/py-privleap/Makefile b/security/py-privleap/Makefile
index 802949ea9dfa..27e55124f83f 100644
--- a/security/py-privleap/Makefile
+++ b/security/py-privleap/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	privleap
 DISTVERSION=	5.7-1
+PORTREVISION=	1
 CATEGORIES=	security python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
diff --git a/security/py-privleap/files/privleapd.in b/security/py-privleap/files/privleapd.in
index 37b93ae71e07..e39d90bf2260 100755
--- a/security/py-privleap/files/privleapd.in
+++ b/security/py-privleap/files/privleapd.in
@@ -14,10 +14,24 @@ load_rc_config "${name}"
 
 : ${privleapd_enable:=NO}
 
+leapctl_cmd="%%PREFIX%%/bin/leapctl"
 pidfile="/var/run/${name}.pid"
 procname="%%PREFIX%%/bin/${name}"
 command_interpreter="%%PYTHON_CMD%%"
 command="/usr/sbin/daemon"
 command_args="-cS -l authpriv -t \"${desc}\" -T \"${name}\" -p \"${pidfile}\" \"${procname}\""
+extra_commands="reload"
+reload_precmd="${name}_checkconf"
+reload_cmd="${name}_reload"
+
+privleapd_checkconf()
+{
+    "${procname}" --check-config
+}
+
+privleapd_reload()
+{
+    "${leapctl_cmd}" --reload
+}
 
 run_rc_command "$1"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a14d41f.3367e.44404fe6>