Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2008 03:40:37 -0700
From:      "David Allen" <the.real.david.allen@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rc scripts
Message-ID:  <2daa8b4e0806300340y61069993xcf47484053a0b20c@mail.gmail.com>
In-Reply-To: <6.0.0.22.2.20080627165741.025edf40@mail.computinginnovations.com>
References:  <2daa8b4e0806271411p709ad002o3137c7eb4ff53bac@mail.gmail.com> <6.0.0.22.2.20080627165741.025edf40@mail.computinginnovations.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2daa8b4e0806300340y61069993xcf47484053a0b20c>