From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 12 12:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84FA855F for ; Tue, 12 Nov 2013 12:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6606226B0 for ; Tue, 12 Nov 2013 12:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rACCA0LJ011398 for ; Tue, 12 Nov 2013 12:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rACCA0tU011397; Tue, 12 Nov 2013 12:10:00 GMT (envelope-from gnats) Resent-Date: Tue, 12 Nov 2013 12:10:00 GMT Resent-Message-Id: <201311121210.rACCA0tU011397@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Leo Vandewoestijne Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 376793DE for ; Tue, 12 Nov 2013 12:05:54 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 275892659 for ; Tue, 12 Nov 2013 12:05:54 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rACC5rWn084053 for ; Tue, 12 Nov 2013 12:05:53 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rACC5ra2084048; Tue, 12 Nov 2013 12:05:53 GMT (envelope-from nobody) Message-Id: <201311121205.rACC5ra2084048@oldred.freebsd.org> Date: Tue, 12 Nov 2013 12:05:53 GMT From: Leo Vandewoestijne To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/183891: [MAINTAINER-UPDATE] dns/knot: startup script failure returned X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 12:10:00 -0000 >Number: 183891 >Category: ports >Synopsis: [MAINTAINER-UPDATE] dns/knot: startup script failure returned >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Nov 12 12:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Leo Vandewoestijne >Release: >Organization: DNS-Lab >Environment: >Description: When submitting PR 183682 I was unaware the patch as in PR 182792 wasn't committed yet. So to my amazing I just noticed the startup problem still exists. Enclosed patch is basicly the same as the uncommited one, but besides the removal of the -w option, knotd now starts by default as a daemon (-d) in stead of interactive (-i). So I could simplify the startup script a lot. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -rup knot.old/Makefile knot/Makefile --- knot.old/Makefile 2013-11-12 09:32:26.000000000 +0000 +++ knot/Makefile 2013-11-12 11:31:53.000000000 +0000 @@ -3,6 +3,7 @@ PORTNAME= knot DISTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ http://dns-lab.com/downloads/knot-dns/ @@ -37,5 +38,9 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/samples/knot.sample.conf ${STAGEDIR}${ETCDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ + @${MKDIR} ${PREFIX}/var/lib/knot + @${MKDIR} ${PREFIX}/var/run/knot + @${CHOWN} 53:53 ${PREFIX}/var/lib/knot + @${CHOWN} 53:53 ${PREFIX}/var/run/knot .include diff -rup knot.old/files/knotd.in knot/files/knotd.in --- knot.old/files/knotd.in 2013-11-12 09:32:26.000000000 +0000 +++ knot/files/knotd.in 2013-11-12 11:26:31.000000000 +0000 @@ -19,32 +19,21 @@ name=knot rcvar=knot_enable extra_commands="reload" -reload_cmd="${name}_reload" -status_cmd="${name}_status" -stop_cmd="${name}_stop" +reload_cmd="${name}_x reload" +status_cmd="${name}_x status" +stop_cmd=" ${name}_x stop" load_rc_config ${name} : ${knot_enable:="NO"} : ${knot_config="%%PREFIX%%/etc/knot/knot.conf"} -command=%%PREFIX%%/sbin/${name}c -procname=%%PREFIX%%/sbin/${name}d -pidfile=/var/run/${name}.pid - -command_args="-c ${knot_config} -w start" +command=%%PREFIX%%/sbin/${name}d +command_args="-c ${knot_config} -d" required_files=${knot_config} -knot_reload() { - echo "Reloading ${name}." - ${command} -c ${knot_config} reload - } -knot_status() { - ${command} -c ${knot_config} status - } -knot_stop() { - echo "Stopping ${name}." - ${command} -c ${knot_config} stop +knot_x() { + %%PREFIX%%/sbin/${name}c -c ${knot_config} "$1" } run_rc_command "$1" diff -rup knot.old/files/pkg-message.in knot/files/pkg-message.in --- knot.old/files/pkg-message.in 2013-11-12 09:32:26.000000000 +0000 +++ knot/files/pkg-message.in 2013-11-12 11:18:55.000000000 +0000 @@ -1,30 +1,22 @@ #################################################################### # -# To start using Knot DNS, you should complete the following tasks: -# -# ----- configure -------------------------------------------------- +# To get Knot DNS started: # cp %%ETCDIR%%/knot.sample.conf %%ETCDIR%%/knot.conf $EDITOR %%ETCDIR%%/knot.conf -# -# ----- prepare ---------------------------------------------------- -# -# required: echo knot_enable=\"YES\" >> /etc/rc.conf -# for customization if desired: # echo knot_config=\"%%PREFIX%%/etc/knot/knot.conf\" >> /etc/rc.conf -# -# ----- startup ---------------------------------------------------- -# %%PREFIX%%/etc/rc.d/knotd start # #################################################################### - When upgrading from version of before 1.3.0-RC1: mind the default config file location has changed. + When upgrading from version of 1.3.1-RC1 or before: + the startup script has changed due to parameter changes. + That problem reapeared in port 1.3.3 and was fixed in 1.3.3_1. ==================================================================== >Release-Note: >Audit-Trail: >Unformatted: