On Tue, 24 Aug 2004 03:26:02 +0400, vippy <vip3r_at_inbox.ru> wrote: > I'm wondering having in my rc.conf legal assignment: > > ntpd_flags="-A -c /etc/ntpd.conf -f /var/db/ntpd.drift \ > -l /var/log/ntpd.log -p /var/run/ntpd.pid" > > Why /etc/rc.d/ntpd script requires /etc/ntp.conf file as a config file > for NTP daemon? This file even isn't exist by default (cause ntpd is > contributed software, right?), so system administrator should create new > file, named by his own rules. Often it'll be ${name}.conf -> ntpd.conf. > So i see there 3 different ways to fix this (wrong?) behavior: > : > > 2) Add new variable "ntpd_conf" to rc.conf (and use it in etc/rc.d/ntpd > rc.ng) which will represent path to ntpd config file (default to > etc/ntpd.conf in etc/defaults/rc.conf). > > 3) Somehow (gtopt(1)?) parse ntpd_flags variable from rc.conf to find > what is after "-c" and use it in etc/rc.d/ntpd. > If you look at the man page for ntpd, the default configuration file is /etc/ntpd.conf, so you shouldn't need to specify '-c <ntpd conf file>' to the ntpd_flags variable. Also, you don't need the '-p <ntpd pid file>' in the ntpd_flags as it is the default. The required_files variable is to let the system administator know which file the ntpd configuration belongs in.Received on Tue Aug 24 2004 - 12:18:05 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:08 UTC