LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-18-2016, 08:42 PM   #1
jjtan88
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Rep: Reputation: Disabled
When and how the time is synced via systemd-timedated.service?


Hi,

Does anyone have any ideas about when and how the time is synced via /lib/systemd/system/systemd-timedated.service? (Only once at boot or periodically?)

All help appreciated!

Thank you.

Regards
JJ

Last edited by jjtan88; 10-18-2016 at 08:45 PM.
 
Old 10-22-2016, 10:09 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Well, maybe this will provide some guidance: https://www.freedesktop.org/software...d.service.html
Quote:
Name

systemd-timedated.service, systemd-timedated — Time and date bus mechanism
Synopsis

systemd-timedated.service

/usr/lib/systemd/systemd-timedated
Description

systemd-timedated is a system service that may be used as a mechanism to change the system clock and timezone, as well as to enable/disable NTP time synchronization. systemd-timedated is automatically activated on request and terminates itself when it is unused.

The tool timedatectl(1) is a command line client to this service.

See the developer documentation for information about the APIs systemd-timedated provides.
See Also

systemd(1), timedatectl(1), localtime(5), hwclock(8)
I really don't know about systemd, but I would think that it does essentially what the good old-fashioned way does:
  • At boot the hardware clock is read and sets the system (software) clock.
  • NTP is started and synchronizes the system clock.
  • On shutdown, the synchronized system clock is written to the hardware clock.
Somewhere or other, that same thing has to happen, you'd think.

Hope this helps some.
 
Old 10-23-2016, 03:46 AM   #3
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
WatchdogSec=3min
Probably in /lib/systemd/system/dbus-org.freedesktop.timedate1.service
See: http://man7.org/linux/man-pages/man7...ectives.7.html (6,386 lines!)
Maybe line 717 in: https://github.com/systemd/systemd/b...te/timedated.c

Last edited by Jjanel; 10-23-2016 at 03:48 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemd service: AUTOSSH.service does not start at boot, how can I fix this? The_Linux_Machine Linux - Newbie 1 07-06-2016 12:00 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
systemd service aagaag Linux - Newbie 1 01-18-2016 07:42 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:44 PM.

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