[Bug 256221] dns/knot-resolver: the kresd init script won't stop the service

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Jun 2021 22:20:52 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256221

--- Comment #24 from Chris Hutchinson <portmaster_at_bsdforge.com> ---
Had a thought about the (missing) restart command.

At the end of your start command:

+       else
+               echo "${name} seems already running."
+       fi

Maybe change it as follows:

+       else
+               echo "${name} is already running!"
+               echo "Restarting ${name}..."
+               run_rc_command stop
+               run_rc_command start
+               echo "${name} restarted."
+       fi

Seems simple, and won't break/harm anything. Yet only adds
4 additional lines. :-)

--Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jun 22 2021 - 22:20:52 UTC

Original text of this message