From owner-freebsd-ports@FreeBSD.ORG Sun Feb 20 11:17:01 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DDF316A4CE; Sun, 20 Feb 2005 11:17:01 +0000 (GMT) Received: from hotmail.com (bay101-dav16.bay101.hotmail.com [64.4.56.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 188FD43D49; Sun, 20 Feb 2005 11:17:01 +0000 (GMT) (envelope-from fantasticjamieburns@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 20 Feb 2005 03:17:00 -0800 Message-ID: Received: from 82.43.195.40 by BAY101-DAV16.phx.gbl with DAV; Sun, 20 Feb 2005 11:16:24 +0000 X-Originating-IP: [82.43.195.40] X-Originating-Email: [fantasticjamieburns@hotmail.com] X-Sender: fantasticjamieburns@hotmail.com From: "Jamie Burns" To: Date: Sun, 20 Feb 2005 11:16:43 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0018_01C5173D.A88E7740" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-OriginalArrivalTime: 20 Feb 2005 11:17:00.0708 (UTC) FILETIME=[B29E2640:01C5173D] X-Mailman-Approved-At: Sun, 20 Feb 2005 13:10:18 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: ports@FreeBSD.org Subject: FreeBSD Port: mydns-mysql-0.11.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 11:17:01 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C5173D.A88E7740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I just updated the startup script for MyDNS on FreeBSD. Now is will only = start if: mydns_enable=3D"YES" Is included in /etc/rc.conf Any chance something like this can be included by default for more = consistent administration? Also, I find it doesn't start properly as MySQL is never fully loaded = when the start script is called. Even if I arrange the startup scripts = alphabetically so that the MySQL server starts first. As a quick = solution I have added a 30 second delay to the MyDNS start but I would = love to hear a better idea. Thanks! Jamie Burns. ------=_NextPart_000_0018_01C5173D.A88E7740 Content-Type: application/octet-stream; name="mydns.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mydns.sh" #!/bin/sh # Suck in the configuration variables. if [ -z "${source_rc_confs_defined}" ]; then if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi fi if [ -z "${mydns_enable}" ]; then mydns_enable=no fi case "${mydns_enable}" in [Yy][Ee][Ss]) case "$1" in start) (sleep 30; /usr/local/sbin/mydns -b)& echo -n "MyDNS starting in 30 seconds..." ;; stop) echo -n "Stopping MyDNS..." kill `cat /var/run/mydns.pid` ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac ;; *) rc=0 ;; esac ------=_NextPart_000_0018_01C5173D.A88E7740--