Date: Thu, 03 Jun 2021 17:57:26 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 256221] dns/knot-resolver: the kresd init script won't stop the service Message-ID: <bug-256221-7788-9Ze6jRLhug@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-256221-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-256221-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256221 --- Comment #10 from Chris Hutchinson <portmaster@bsdforge.com> --- (In reply to Vladim=C3=ADr =C4=8Cun=C3=A1t from comment #9) > -HUP isn't supported, -TERM is the way (for both kresd and kres-cache-gc). -HUP *does* remove kresd from the process list. So I think we can safely assume it gets killed. BUT I completely agree that -TERM is the correct answer here. daemon(8) appears to me to be unnecessary overhead, and just muddies the water. eg; # ps waux | grep kres root 26098 0.0 0.0 11004 2024 - Is 13:30 0:00.00 daemon: /usr/local/sbin/kresd[26553] (daemon) root 26553 0.0 0.1 140312 40388 - S 13:30 0:46.35 /usr/local/sbin/kresd -c /usr/local/etc/knot-resolver/kr NOTE above that process 26553 is the daemon(8) initiation process. Whereas 26098 is the kresd(8) process itself. So in using daemon(8), we end up with 2 procs/pids. Whereas simply starting kresd(8) alone as a daemon reduces that to the kresd(8) proc/pid (kresd.pid). I'm cobbling up a new rc.d/kresd init script now that currently provides START && STOP. But want to add RESTART to it as well. I'd have already posted it here. But I'm juggling this along side $WORK and all my testing is on a production server that actually depends on kresd already. So testing is a little strained. I should be able to provide something here for further examination within a couple hours. --Chris --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256221-7788-9Ze6jRLhug>