Date: Fri, 10 May 2013 10:47:49 +0200 (CEST) From: Erwin Lansing <erwin@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/178476: [dns/knot]: Fix rc script for 1.2.0 Message-ID: <20130510084749.ADCACBD1A@mail.droso.net> Resent-Message-ID: <201305100850.r4A8o1Cl076703@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 178476 >Category: ports >Synopsis: [dns/knot]: Fix rc script for 1.2.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 10 08:50:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Erwin Lansing >Release: FreeBSD 9.1-RELEASE amd64 >Organization: DK Hostmaster A/S >Environment: System: FreeBSD koala.droso.dk 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Fix rc startup script for the 1.2.0 release: - knotc start does not work when dropping privileges, use knotd -d instead - knotc running is now knotc status - -a is default, don't use explicitly https://lists.nic.cz/pipermail/knot-dns-users/2013-April/000189.html >How-To-Repeat: >Fix: --- knotd.in.diff begins here --- Index: Makefile =================================================================== --- Makefile (revision 317775) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= knot DISTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ http://www.dns-lab.com/downloads/knot-dns/ Index: files/knotd.in =================================================================== --- files/knotd.in (revision 317775) +++ files/knotd.in (working copy) @@ -23,6 +23,7 @@ reload_cmd="${name}_reload" start_precmd="${name}_compile" status_cmd="${name}_status" +start_cmd="${name}_start" stop_cmd="${name}_stop" load_rc_config ${name} @@ -43,11 +44,15 @@ } knot_reload() { echo "Reloading ${name}." - ${command} -c ${knot_config} -a reload + ${command} -c ${knot_config} reload } knot_status() { - ${command} -c ${knot_config} running + ${command} -c ${knot_config} status } +knot_start() { + echo "Starting ${name}." + ${procname} -c ${knot_config} -d + } knot_stop() { echo "Stopping ${name}." ${command} -c ${knot_config} stop --- knotd.in.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130510084749.ADCACBD1A>