Date: Wed, 02 Jun 2021 20:33:52 +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-L6rO1qY9w3@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 #6 from Chris Hutchinson <portmaster@bsdforge.com> --- OK after many iterations of several different possibilities. This is the only way I can guarantee a successful termination of kresd(8) that insures that it also cleans up after itself: for pid in `ps waux | grep kresd | grep daemon | awk '{print $2;}'` do kill -TERM $pid done I created a script in my ~/bin/ folder called kresd-stop: #!/bin/sh - for pid in `ps waux | grep kresd | grep daemon | awk '{print $2;}'` do kill -TERM $pid done exit HTH --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-L6rO1qY9w3>