[ntp:questions] Finding out where ntpd gets its ntp.conf file
joegwinn at comcast.net
Sat Sep 6 23:11:34 UTC 2008
In article <8Mhwk.629$yS5.294 at edtnps83>,
Unruh <unruh-spam at physics.ubc.ca> wrote:
> Joseph Gwinn <joegwinn at comcast.net> writes:
> >In article <slrngbvrsh.rsh.kostecke at stasis.kostecke.net>,
> > Steve Kostecke <kostecke at ntp.org> wrote:
> >> On 2008-09-03, Joseph Gwinn <joegwinn at comcast.net> wrote:
> >> > Read the "service" shell script. It appears to get its file paths from
> >> > environment variables named after the thing being started and stopped
> >> > and accessible only in the root environment; this bit of RHEL-specific
> >> > structure is being chased down. (Does anyone know where this is
> >> > documented?)
> >> On Linux OSes init scripts are typically found in /etc/init.d/ or
> >> /etc/rc.d/init.d/ Look for one named ntp (or something containing ntp).
> >Yes, and that's where strace led me, where I found a script called ntpd.
> >How the service script interacts with this ntpd script isn't clear.
> >Environment variables seem to be implicated, but a listing of
> >environment variables is not helpful. Next week I'll digest it all.
> service simply runs the program listed as its argument from the /etc/init.d
> Ie, service ntpd start is the same as
> /etc/init.d/ntpd start
True, but there seems to be more to it than that. Next week.
More information about the questions