Created attachment 236236 [details] startup script patch for systems with transient /var/run mount Hi inadyn maintainer, I've noticed that dns/inadyn tries to write a pidfile in /var/run/inadyn as its own unprivileged UID, which doesn't work for systems with a transient /var/run mount like mine. I've patched /usr/local/etc/rc.d/inadyn to create this and set permissions if it doesn't exist at startup which resolves my issue, submitting here for consideration.
Created attachment 236237 [details] fixed patch
Created attachment 236275 [details] fixed patch r2 Updated patch to reference the inadyn_pidfile location instead of a fixed path
Just pinging this bug to see if the patch could be reviewed.
Created attachment 240296 [details] fixed patch r3 adds quote safety to ${piddir} and fixes null-output for id check
Hi, patch looks good, sorry for the late reply. I will apply it in the meantime
Sounds great, than you for your consideration.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 commit 86bb83ce8acd6c460fa3f708fd7ac95c6ad7f000 Author: Oleksii Samorukov <samm@FreeBSD.org> AuthorDate: 2023-06-06 06:03:07 +0000 Commit: Oleksii Samorukov <samm@FreeBSD.org> CommitDate: 2023-06-06 06:04:10 +0000 dns/inadyn: fix for pidfile creation on transient /var/run configuration PR: 266106 dns/inadyn/Makefile | 1 + dns/inadyn/files/inadyn.in | 5 +++++ 2 files changed, 6 insertions(+)
fixed, thanks