Ubuntu Server Guide
Configuring timedatectl and timesyncd
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
Configuring timedatectl and timesyncd
The current status of time and time configuration via timedatectl and timesyncd can be checked with timedatectl status. $ t i m e d a t e c t l s t a t u s L o c a l time : Fr 2018−02−23 0 8 : 4 7 : 1 3 UTC U n i v e r s a l time : Fr 2018−02−23 0 8 : 4 7 : 1 3 UTC RTC time : Fr 2018−02−23 0 8 : 4 7 : 1 3 Time zone : Etc /UTC (UTC, +0000) System c l o c k s y n c h r o n i z e d : y e s systemd−timesyncd . s e r v i c e a c t i v e : y e s RTC i n l o c a l TZ : no If chrony is running it will automatically switch to: [ . . . ] systemd−timesyncd . s e r v i c e a c t i v e : no Via timedatectl an admin can control the timezone, how the system clock should relate to the hwclock and if permanent synronization should be enabled or not. See man timedatectl for more details. timesyncd itself is still a normal service, so you can check its status also more in detail via. $ s y s t e m c t l s t a t u s systemd−timesyncd systemd−timesyncd . s e r v i c e − Network Time S y n c h r o n i z a t i o n Loaded : l o a d e d ( / l i b / systemd / system / systemd−timesyncd . s e r v i c e ; e n a b l e d ; vendor p r e s e t : e n a b l e d ) A c t i v e : a c t i v e ( r u n ni n g ) s i n c e F r i 2018−02−23 0 8 : 5 5 : 4 6 UTC; 10 s ago Docs : man : systemd−timesyncd . s e r v i c e ( 8 ) Main PID : 3744 ( systemd−timesyn ) S t a t u s : ” S y n c h r o n i z e d t o time s e r v e r 9 1 . 1 8 9 . 8 9 . 1 9 8 : 1 2 3 ( ntp . ubuntu . com ) . ” Tasks : 2 ( l i m i t : 4 9 1 5 ) CGroup : / system . s l i c e / systemd−timesyncd . s e r v i c e | −3744 / l i b / systemd / systemd−timesyncd Feb 23 0 8 : 5 5 : 4 6 b i o n i c −t e s t systemd [ 1 ] : S t a r t i n g Network Time S y n c h r o n i z a t i o n . . . Feb 23 0 8 : 5 5 : 4 6 b i o n i c −t e s t systemd [ 1 ] : S t a r t e d Network Time S y n c h r o n i z a t i o n . Feb 23 0 8 : 5 5 : 4 6 b i o n i c −t e s t systemd−timesyncd [ 3 7 4 4 ] : S y n c h r o n i z e d t o time s e r v e r 9 1 . 1 8 9 . 8 9 . 1 9 8 : 1 2 3 ( ntp . ubuntu . com ) . The nameserver to fetch time for timedatectl and timesyncd from can be specified in /etc/systemd/timesyncd .conf and additional config files can be stored in /etc/systemd/timesyncd.conf.d/. The entries for NTP= and FallbackNTP= are space separated lists. See man timesyncd.conf for more. 60 |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling