Date: Fri, 1 Jun 2007 20:27:53 GMT From: Simun Mikecin<numisemis@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/113235: [patch] dns/maradns problem with startup during boot Message-ID: <200706012027.l51KRr4P068425@www.freebsd.org> Resent-Message-ID: <200706012030.l51KUBBj072458@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113235 >Category: ports >Synopsis: [patch] dns/maradns problem with startup during boot >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 01 20:30:11 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: 6.2-STABLE >Organization: >Environment: FreeBSD data.home.hr 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun May 27 15:04:56 CEST 2007 root@data.home.hr:/var/tmp/obj/usr/src.6/sys/DATA amd64 >Description: During boot maradns daemon dies with this kind of log message in /var/log/messages: May 19 11:55:26 data maradns: HUP signal sent to MaraDNS process MaraDNS is intended to be run by duende process supervisor which handles signals and standard output of maradns. sending HUP signal to maradns or duende process should restart maradns. Startup script (maradns.sh) provided by this port does not use duende. Provided patch changes maradns.sh to use duende for startup. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN maradns.old/Makefile maradns/Makefile --- maradns.old/Makefile Sat May 26 00:11:42 2007 +++ maradns/Makefile Fri Jun 1 21:52:50 2007 @@ -7,6 +7,7 @@ PORTNAME= maradns PORTVERSION= 1.2.12.06 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://www.maradns.org/download/1.2/${PORTVERSION}/ \ http://kapranoff.ru/~kappa/files/ @@ -57,9 +58,8 @@ ${MKDIR} ${PREFIX}/etc/maradns ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv2 \ ${PREFIX}/etc/maradns/example_csv2 - @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ - '-e s!%%SERVICE%%!maradns!g' \ - ${FILESDIR}/rc_d.sh > ${PREFIX}/etc/rc.d/maradns.sh + ${MKDIR} ${PREFIX}/etc/maradns/logger + ${INSTALL_SCRIPT} ${FILESDIR}/maradns.sh ${PREFIX}/etc/rc.d @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ '-e s!%%SERVICE%%!zoneserver!g' \ ${FILESDIR}/rc_d.sh > ${PREFIX}/etc/rc.d/zoneserver.sh diff -urN maradns.old/files/maradns.sh maradns/files/maradns.sh --- maradns.old/files/maradns.sh Thu Jan 1 01:00:00 1970 +++ maradns/files/maradns.sh Fri Jun 1 21:19:25 2007 @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $FreeBSD: ports/dns/maradns/files/rc_d.sh,v 1.3 2006/02/20 20:46:57 dougb Exp $ +# + +# PROVIDE: maradns +# REQUIRE: SERVERS +# BEFORE: DAEMON +# KEYWORD: shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move maradns.sh to /etc/rc.d/maradns + +prefix=/usr/local + +# Define these maradns_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/maradns +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +maradns_enable=${maradns_enable-"NO"} +# maradns_flags can be something like "-f /path/alternate_rc" + +. /etc/rc.subr + +name="maradns" +rcvar=`set_rcvar` +command="${prefix}/bin/duende" + +load_rc_config $name + +flags="${prefix}/sbin/${name} ${maradns_flags}" + +run_rc_command "$1" diff -urN maradns.old/pkg-plist maradns/pkg-plist --- maradns.old/pkg-plist Thu Dec 14 14:45:02 2006 +++ maradns/pkg-plist Fri Jun 1 21:51:52 2007 @@ -7,6 +7,7 @@ etc/rc.d/maradns.sh etc/rc.d/zoneserver.sh etc/maradns/example_csv2 +@dirrmtry etc/maradns/logger @dirrmtry etc/maradns sbin/maradns sbin/zoneserver >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706012027.l51KRr4P068425>