On Thu, Oct 28, 2004, Aaron BOSTICK wrote:
> Line 56 of rc.ntp in release 2.2 of ntpd is missing the -p option which
> creates the pid file.  This is preventing the rc script from working
> properly.
>
> The line should read:
>     /opkg/bin/ntpd -p $ntp_pidfile
>
Thanks for the tip.

You're right that there is a $ntp_pidfile variable in the %common section of
rc.ntp. However, OpenPKG 2.2's ntp package now writes its pid file according
to the config file ntp.conf. You should find one in your /opkg/etc/ntp, and
can adjust the path and filename of the pid file there. Speak up if the ntpd
binary running in daemon mode is not producing the pid file where you
specify it in ntp.conf (making sure it has the necessary privileges to write
to the path in question).

This change in OpenPKG 2.2's ntp package has some drawbacks. Although the
admin can change where ntpd writes its pid file (in ntp.conf), the variable
$ntp_pidfile in rc.ntp is hardcoded to look for the pid file in
/opkg/var/ntp. I'll look into ways of fixing this.

Regards,
Michael

-- 
Michael Schloh von Bennewitz <[EMAIL PROTECTED]>
Development Team, Operations Northern Europe
Cable & Wireless Telecommunications Services
Tel +49-89-92699-227, Fax +49-89-92699-808

Attachment: pgpXa901JJQiD.pgp
Description: PGP signature

Reply via email to