1 2 3 4 5 6 7 8 9 |
systemctl start systemd-timesyncd - запустить демон systemd-timesyncd systemctl enable systemd-timesyncd - добавить в автозапуск systemctl status systemd-timesyncd - проверить текущее состояние демона systemctl restart systemd-timesyncd - перезапуск journalctl -u systemd-timesyncd --since today - посмотреть лог на сегодня для демона systemd-timesyncd systemctl stop systemd-timesyncd - остановить systemctl disable systemd-timesyncd - отключит автозапуск |
конфиг:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
nano /etc/systemd/timesyncd.conf -------------------------------- # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details. [Time] NTP=kom-dc01.holding.com kom-dc02.holding.com #FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org -------------------------------- |