git: 76fac30da491 - main - net-mgmt/rubygem-oxidized: Fix rc script restart race with daemon(8)

From: Yusuf Yaman <nxjoseph_at_FreeBSD.org>
Date: Sat, 12 Sep 2026 23:12:21 UTC
The branch main has been updated by nxjoseph:

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

commit 76fac30da491935c886be15985b2d30c543d1018
Author:     Alexander Moisseev <moiseev@mezonplus.ru>
AuthorDate: 2026-09-12 22:52:12 +0000
Commit:     Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-09-12 22:56:51 +0000

    net-mgmt/rubygem-oxidized: Fix rc script restart race with daemon(8)
    
    PR:             298397
    Approved by:    Nick Hilliard <nick@foobar.org> (maintainer)
    Approved by:    osa, vvd (Mentors, implicit)
    MFH:            2026Q3
---
 net-mgmt/rubygem-oxidized/Makefile          | 2 +-
 net-mgmt/rubygem-oxidized/files/oxidized.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/rubygem-oxidized/Makefile b/net-mgmt/rubygem-oxidized/Makefile
index 917ef7c403f0..eda3f00a47f8 100644
--- a/net-mgmt/rubygem-oxidized/Makefile
+++ b/net-mgmt/rubygem-oxidized/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	oxidized
 DISTVERSION=	0.37.0
+PORTREVISION=	1
 CATEGORIES=	net-mgmt rubygems
 MASTER_SITES=	RG
 
@@ -29,7 +30,6 @@ USE_RC_SUBR=	oxidized
 SHEBANG_FILES=	extra/*.runit
 
 NO_ARCH=	yes
-SUB_LIST=	RUBY=${RUBY}
 
 USERS=		oxidized
 GROUPS=		oxidized
diff --git a/net-mgmt/rubygem-oxidized/files/oxidized.in b/net-mgmt/rubygem-oxidized/files/oxidized.in
index 67efb39068dd..ccf0774d34ee 100644
--- a/net-mgmt/rubygem-oxidized/files/oxidized.in
+++ b/net-mgmt/rubygem-oxidized/files/oxidized.in
@@ -42,9 +42,9 @@ load_rc_config "${name}"
 
 piddir="/var/run/${name}"
 pidfile="${piddir}/${name}.pid"
-procname=%%RUBY%%
+procname=/usr/sbin/daemon
 command="/usr/sbin/daemon"
-command_args="-f -p ${pidfile} %%PREFIX%%/bin/oxidized ${oxidized_args}"
+command_args="-f -P ${pidfile} %%PREFIX%%/bin/oxidized ${oxidized_args}"
 
 export HOME=${oxidized_home}