Date: Sun, 05 Jul 2026 20:12:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 296544] /etc/rc.d/statd and /etc/rc.d/lockd do not honor rpc_statd_flags and rpc_lockd_flags settings in /etc/rc.conf Message-ID: <bug-296544-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296544 Bug ID: 296544 Summary: /etc/rc.d/statd and /etc/rc.d/lockd do not honor rpc_statd_flags and rpc_lockd_flags settings in /etc/rc.conf Product: Base System Version: 15.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: pirzyk@FreeBSD.org Created attachment 272517 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=272517&action=edit Moving the rc_flags variable assignment Upgraded a NFS server from 14.4-RELEASE to 15.1-RELEASE and rpc.lockd and rpc.statd stopped responding to remote machines. The reason they stopped responding is the port they were talking on was not the predefined port I had listed in the firewall rules and added to the rpc_*_flags variables in /etc/rc.conf This is my setup: rpc_lockd_enable="YES" rpc_lockd_flags="-p 701" rpc_statd_enable="YES" rpc_statd_flags="-p 645" On a freshly installed 15.1-RELEASE, it would startup them w/o the -p <PORT> options. 100024 1 udp 901 status 100024 1 tcp 901 status 100021 0 udp 858 nlockmgr 100021 0 tcp 865 nlockmgr 100021 1 udp 858 nlockmgr 100021 1 tcp 865 nlockmgr 100021 3 udp 858 nlockmgr 100021 3 tcp 865 nlockmgr 100021 4 udp 858 nlockmgr 100021 4 tcp 865 nlockmgr pirzyk@qube:/etc/rc.d 21>p|g statd root 2436 0.9 0.1 276288 3012 - Ss 17:22 0:00.00 /usr/sbin/rpc.statd Found that the rpc_{statd|lockd}_flags was set right before the run_rc_command call, but in the /etc/rc.d/mountd script, it is set in the *_precmd() subroutine. Moved the call to set rc_flags= in both scripts to the *_precmd() subroutine and now it is working as expected: pirzyk@qube:/etc/rc.d 101>p|g -E 'statd|lockd' root 8777 0.0 0.1 14200 2988 - Ss 15:06 0:00.00 /usr/sbin/rpc.lockd -p 701 root 8891 0.0 0.1 276288 3016 - Is 15:06 0:00.00 /usr/sbin/rpc.statd -p 645 -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-296544-227>
