LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2021, 02:35 PM   #1
Zexuo
Member
 
Registered: Mar 2015
Location: Florida
Distribution: Slackware
Posts: 64

Rep: Reputation: Disabled
/etc/ntp.conf got cleared a couple of months ago.


I run current and just now discovered that I had an empty /etc/ntp.conf file with an August 15 timestamp. I copied the .orig version into place and restarted the daemon to solve the problem. Anyone else see this?

EDIT: I checked my other current machine and that one has an intact /etc/ntp.conf but an empty /etc/ntp.conf.orig, both timestamped January.

Last edited by Zexuo; 10-06-2021 at 02:38 PM. Reason: Additional relevant information.
 
Old 10-06-2021, 09:24 PM   #2
emmet
Member
 
Registered: Oct 2003
Location: FL
Distribution: Slackware
Posts: 49

Rep: Reputation: 43
I just looked. Mine is intact.

Code:
eford@dimholt:~$ ls -l /etc/ntp.conf*
-rw-r--r-- 1 root root 2576 Aug 11 15:48 /etc/ntp.conf
-rw-r--r-- 1 root root 2579 May 21 15:02 /etc/ntp.conf.dist
eford@dimholt:~$ diff /etc/ntp.conf /etc/ntp.conf.dist
21,23c21,23
< server 1.pool.ntp.org iburst
< server 2.pool.ntp.org iburst
< server 3.pool.ntp.org iburst
---
> #server 1.pool.ntp.org iburst
> #server 2.pool.ntp.org iburst
> #server 3.pool.ntp.org iburst
I installed slackware64-current on Aug 10th, and configured ntp the next day, saving the default conf file via cp -p, so the May 21 timestamp is from the distribution.

The default config, by the way, looks to me like it does nothing other than run off the clock in the local computer. Here it is with the comments stripped out:

Code:
eford@dimholt:~$ grep -v '^#' /etc/ntp.conf.dist 

server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10


statsdir /var/lib/ntp/stats

logfile /var/log/ntp

driftfile /var/lib/ntp/drift

pidfile /var/run/ntpd.pid



restrict default limited kod nomodify notrap nopeer noquery
restrict -6 default limited kod nomodify notrap nopeer noquery


restrict 127.0.0.1
restrict ::1
 
Old 10-06-2021, 10:01 PM   #3
kaott
Member
 
Registered: Mar 2020
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by Zexuo View Post
I run current and just now discovered that I had an empty /etc/ntp.conf file with an August 15 timestamp. I copied the .orig version into place and restarted the daemon to solve the problem. Anyone else see this?

EDIT: I checked my other current machine and that one has an intact /etc/ntp.conf but an empty /etc/ntp.conf.orig, both timestamped January.
I have a vague memory of this happening to me as well some time back. I seem to recall it was clobbered by dhcpcd, or seeing comments about how the file was managed by dhcpcd. But I have since fixed it, and don't have a trace of it. It hasn't happened since.
 
Old 10-06-2021, 10:31 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by emmet View Post
The default config, by the way, looks to me like it does nothing other than run off the clock in the local computer. Here it is with the comments stripped out:
Yeah, I think you're right. I usually just uncomment the default *.pool.ntp.org server lines and then start the service.

Their website says, "The NTP Pool DNS system automatically picks time servers which are geographically close for you," and it seems to work well enough.
 
Old 10-07-2021, 04:05 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,979

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Mine is good, nothing changed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
Installed with an SD Card in reader months ago; lost card, won't boot (VolGroup err) sandaili Fedora 2 07-02-2008 05:19 PM
Webalizer help - analysis stopped 2 months ago jantman Linux - Server 2 10-12-2007 10:46 AM
Is Current FC3 Distro Same as 6 months ago rickh Fedora 4 05-06-2005 02:47 PM
Display troubles w/ Radeon 9000 + New MonitorHere's my scenario: Several months ago, Kujila Linux - Software 7 05-10-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration