[arch-general] Fwd: /etc/cron.hourly/ntp isn't working.

Lukáš Jirkovský l.jirkovsky at gmail.com
Wed Nov 26 04:18:11 EST 2008


2008/11/26 Jan de Groot <jan at jgc.homeip.net>:
> On Tue, 2008-11-25 at 21:03 -0500, Daenyth Blank wrote:
>> I'm using openntpd
>>
>> ---------- Forwarded message ----------
>> From: root <daenyth at gmail.com>
>> Date: Tue, Nov 25, 2008 at 21:01
>> Subject: cron: /usr/sbin/run-cron /etc/cron.hourly
>> To: root
>>
>>
>> /bin/stty: standard input: Inappropriate ioctl for device
>> /bin/stty: standard input: Inappropriate ioctl for device
>> :: Stopping OpenNTPD    [BUSY]    [DONE]
>> /bin/stty: standard input: Inappropriate ioctl for device
>> :: Starting OpenNTPD    [BUSY]    [DONE]
>
> this is because the init scripts use some fancy options to set colors.
> This seems to be done by stty, which won't work on a fake tty like the
> one used by cron.
> I don't know why you're restarting openntpd from cron every hour though,
> as it's a daemon that keeps running all the time. Restarting it has no
> use.
>
>

Maybe you want ntpdate instead of ntp. It's not daemon and it
sysnchronizes clock everytime it's run.



More information about the arch-general mailing list