cat /var/log/syslog |grep Synchronise
Feb 8 20:49:22 hwy systemd[1]: Starting Synchronise Hardware Clock to System Clock...
如何获得在重新启动时将硬件时钟与系统时钟同步的程序名称?系统can可以告诉我在重新启动时将硬件时钟与系统时钟同步的程序名称吗?
发布于 2019-02-28 19:08:39
/lib/systemd/system/hwclock Save.service
[root@hostname username]# more /lib/systemd/system/hwclock-save.service
[Unit]
Description=Synchronise Hardware Clock to System Clock
DefaultDependencies=no
Before=shutdown.target
ConditionFileIsExecutable=!/usr/sbin/ntpd
ConditionFileIsExecutable=!/usr/sbin/openntpd
ConditionFileIsExecutable=!/usr/sbin/chrony
ConditionVirtualization=!container
[Service]
Type=oneshot
ExecStart=/sbin/hwclock -D --systohc
[Install]
WantedBy=reboot.target halt.target poweroff.target
所以它似乎最终调用了/sbin/hwclock
https://unix.stackexchange.com/questions/343453
复制相似问题