LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-03-2021, 03:33 AM   #1
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Rep: Reputation: 21
Service chronyd stops automatically after startup


Hi,

I'm trying to have the time in sync on a Debian 10 server using chronyd. When I start the service all seems OK, but after a few seconds it automatically stops itself:
Code:
root@digsvl003:~# systemctl status chronyd
● chrony.service - chrony, an NTP client/server
   Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2021-03-03 10:19:49 CET; 6s ago
     Docs: man:chronyd(8)
           man:chronyc(1)
           man:chrony.conf(5)
  Process: 22640 ExecStart=/usr/sbin/chronyd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
  Process: 22644 ExecStartPost=/usr/lib/chrony/chrony-helper update-daemon (code=exited, status=0/SUCCESS)
 Main PID: 22642 (code=exited, status=0/SUCCESS)

Mar 03 10:19:43 digsvl003 chronyd[22642]: Frequency -37.850 +/- 0.528 ppm read from /var/lib/chrony/chrony.drift
Mar 03 10:19:43 digsvl003 chronyd[22642]: Loaded seccomp filter
Mar 03 10:19:43 digsvl003 systemd[1]: Started chrony, an NTP client/server.
Mar 03 10:19:49 digsvl003 chronyd[22642]: Selected source 194.109.6.2
Mar 03 10:19:49 digsvl003 chronyd[22642]: System clock wrong by -7.094333 seconds, adjustment started
Mar 03 10:19:42 digsvl003 chronyd[22642]: System clock was stepped by -7.094333 seconds
Mar 03 10:19:49 digsvl003 chronyd[22642]: chronyd exiting
Mar 03 10:19:49 digsvl003 systemd[1]: Stopping chrony, an NTP client/server...
Mar 03 10:19:49 digsvl003 systemd[1]: chrony.service: Succeeded.
Mar 03 10:19:49 digsvl003 systemd[1]: Stopped chrony, an NTP client/server.
In /etc/chrony/chrony.conf I have:
Code:
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usuable directives.
server ntp.xs4all.nl iburst
server ntp.tue.nl iburst
pool 2.debian.pool.ntp.org iburst

# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys

# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift

# Uncomment the following line to turn logging on.
#log tracking measurements statistics

# Log files location.
logdir /var/log/chrony

# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0

# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
rtcsync

# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3

# Allow NTP client access from local network.
allow 127.0.0.1
cmdallow 127.0.0.1
How do I prevent chronyd from stopping immediately after starting it?

Kind regards,
Louis
 
Old 03-03-2021, 06:23 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Anything in the journal? Is another time server running?
 
1 members found this post helpful.
Old 03-04-2021, 01:20 AM   #3
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by berndbausch View Post
Anything in the journal? Is another time server running?
Ah thanks for that suggestion. I did some digging around and found that something like systemd-timesyncd.service was causing chrony to shutdown automatically. It's working now as it should.
 
  


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
chronyd: No suitable source for synchronisation miccze Linux - Server 7 10-15-2018 03:41 AM
ntpd on ldap samba dc, chronyd as client - vs zone configuration bktpl Linux - Newbie 1 03-31-2018 06:11 AM
CentOS 5.5 server Squid service stops automatically. vinod.chougule Linux - Newbie 3 09-24-2012 06:03 AM
[SOLVED] [FEDORA/SELinux] chronyd chronyd.pid Barry1 Linux - Security 11 01-06-2011 09:28 AM
"USB device stops working after a time" 'fix' stops cdrom device mount/readability adamben Slackware 6 04-18-2007 01:18 PM

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

All times are GMT -5. The time now is 11:31 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