Re: NTP on 7.1 BETA amd64 odd behaviour

2008-09-19 Thread Oliver Fromme
Mel [EMAIL PROTECTED] wrote:
  On Thursday 18 September 2008 16:44:40 Nash Nipples wrote:
   thanks for the new /etc/rc.d/ntpd
   ...
   
rc_flags=-c ${ntpd_config} ${ntpd_flags}
   
   ...
   what we can learn from it is that on 7.1 BETA your rc.conf.local file
   should look like this
   
   ntpd_config=/etc/ntpd.conf
   ntpd_flags=-p /var/run/ntpd.pid
   
   hope that explains
   Nash
  
  Almost.
  Look at /etc/defaults/rc.conf:
  ntpd_config=/etc/ntp.conf # ntpd(8) configuration file
  ntpd_sync_on_start=NO # Sync time on ntpd startup, even if offset 
  is 
  high
  ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift
  # Flags to ntpd (if enabled).
  
  99% of the cases you don't need ntpd_flags. Only if you want the drift file 
  in 
  a different location or use one of the more obscure options.

In fact it might even be considered a bug that
-f /var/db/ntpd.drift is included in the default
flags.  If someone wants to override the default
location of the drift file, it is much better to
specify it in the ntp.conf file.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Software gets slower faster than hardware gets faster.
-- Niklaus Wirth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NTP on 7.1 BETA amd64 odd behaviour

2008-09-18 Thread Nash Nipples
 -
 
 If I comment out the
 
 ntpd_flags=-c /etc/ntp.conf -p
 /var/run/ntpd.pid
 
 line.
 
 ntp starts without any error.
 
 Should I accept this or is something wrong?
 
 Thanks
 /Leslie

Looks like it wants only one parameter as a flag in rc.conf.local
You can try to change it to just ntpd_flags=-p /var/run/ntpd.pid
If you look through the code in /etc/rc.d/ntpd file it might become more clear 
to you.


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NTP on 7.1 BETA amd64 odd behaviour

2008-09-18 Thread Nash Nipples
thanks for the new /etc/rc.d/ntpd
...
 rc_flags=-c ${ntpd_config} ${ntpd_flags}
...
what we can learn from it is that on 7.1 BETA your rc.conf.local file should 
look like this

ntpd_config=/etc/ntpd.conf
ntpd_flags=-p /var/run/ntpd.pid

hope that explains
Nash


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NTP on 7.1 BETA amd64 odd behaviour

2008-09-18 Thread Mel
On Thursday 18 September 2008 16:44:40 Nash Nipples wrote:
 thanks for the new /etc/rc.d/ntpd
 ...

  rc_flags=-c ${ntpd_config} ${ntpd_flags}

 ...
 what we can learn from it is that on 7.1 BETA your rc.conf.local file
 should look like this

 ntpd_config=/etc/ntpd.conf
 ntpd_flags=-p /var/run/ntpd.pid

 hope that explains
 Nash

Almost.
Look at /etc/defaults/rc.conf:
ntpd_config=/etc/ntp.conf # ntpd(8) configuration file
ntpd_sync_on_start=NO # Sync time on ntpd startup, even if offset is 
high
ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift
# Flags to ntpd (if enabled).

99% of the cases you don't need ntpd_flags. Only if you want the drift file in 
a different location or use one of the more obscure options.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]