From owner-freebsd-questions@FreeBSD.ORG  Mon Jun 30 10:40:38 2008
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 75B261065676
	for <freebsd-questions@freebsd.org>;
	Mon, 30 Jun 2008 10:40:38 +0000 (UTC)
	(envelope-from the.real.david.allen@gmail.com)
Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29])
	by mx1.freebsd.org (Postfix) with ESMTP id 30EBD8FC21
	for <freebsd-questions@freebsd.org>;
	Mon, 30 Jun 2008 10:40:38 +0000 (UTC)
	(envelope-from the.real.david.allen@gmail.com)
Received: by yx-out-2324.google.com with SMTP id 31so208781yxl.13
	for <freebsd-questions@freebsd.org>;
	Mon, 30 Jun 2008 03:40:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to
	:subject:in-reply-to:mime-version:content-type
	:content-transfer-encoding:content-disposition:references;
	bh=QQH0TZOHUOmkUBoys5fkvX3DHJ40WAhKfKfZLXb08RU=;
	b=quOUoUcuLLxx/THzV9vv5FMTa8xSUD5c/GugV292yZt9c1UskE5AO/nAiTbuwABT9G
	0eBl7aeQqYGrCphPAabOQtEILXZ23rlO/ue344Wbuj4AZUHBye873O1tSasEF7eaWwsk
	4zsXfC19E3/9m8qZg34oaChhqgVmo5ivWdvv0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:in-reply-to:mime-version
	:content-type:content-transfer-encoding:content-disposition
	:references;
	b=vPtdfgRgliSXlEYH1jgNVfPZLwJ0+vXT6NBXywX/xp++rcUAPvHLaQrLIeS6lAewhM
	LmvcheAnUbfJJq/Y8Z5Q/DUtl1Kh09RJlM9k/wghDV5TJAbqgEC/wWMVKe47zatZrm83
	MX+n2lcwkPwVP10SChrtZjRLrwZrK0/r7PgQk=
Received: by 10.150.49.2 with SMTP id w2mr8234873ybw.27.1214822437377;
	Mon, 30 Jun 2008 03:40:37 -0700 (PDT)
Received: by 10.151.111.10 with HTTP; Mon, 30 Jun 2008 03:40:37 -0700 (PDT)
Message-ID: <2daa8b4e0806300340y61069993xcf47484053a0b20c@mail.gmail.com>
Date: Mon, 30 Jun 2008 03:40:37 -0700
From: "David Allen" <the.real.david.allen@gmail.com>
To: freebsd-questions@freebsd.org
In-Reply-To: <6.0.0.22.2.20080627165741.025edf40@mail.computinginnovations.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <2daa8b4e0806271411p709ad002o3137c7eb4ff53bac@mail.gmail.com>
	<6.0.0.22.2.20080627165741.025edf40@mail.computinginnovations.com>
Subject: Re: rc scripts
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jun 2008 10:40:38 -0000

On Fri, Jun 27, 2008 at 3:01 PM, Derek Ragona
<derek@computinginnovations.com> wrote:
>
> At 04:11 PM 6/27/2008, David Allen wrote:
>>
>> I need to an '-s' flag to the execution of openntpd's rc script:
>> The problems I'm having are multiple.  First, the program doesn't offer
>> any logging, and running it with the "do not daemonize" switch with
>>
>>    # /usr/local/sbin/ntpd -d 2>&1 > logfile
>>
>> yields no output.
>
> Add:
> set -x
>
> at the top of the script and run the output to a file as you were doing.  I would add a path to the logfile though and don't worry about the daemon like:
>
> /usr/local/sbin/ntpd start 2>&1 >/tmp/logfile
>
> Then you can kill it off and see what the startup looked like in the logfile.

Using set -x didn't occur to me, but from a brief look at the output,
it seemed to pick up (which, I guess, it shouldn't) my
openntpd_flags="-s" in /etc/rc.conf.  But even then, the logfile was
populated with nothing more than "Starting openntpd", so I'm back to
where I started.

I guess I'll be filing this in my WTF notes, and call it a day.