文件操作 - chrony-wait.service
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/systemd/system/chrony-wait.service
编辑文件内容
[Unit] Description=Wait for chrony to synchronize system clock Documentation=man:chronyc(1) After=chronyd.service Requires=chronyd.service Before=time-sync.target Wants=time-sync.target [Service] Type=oneshot # Wait for chronyd to update the clock and the remaining # correction to be less than 0.1 seconds ExecStart=/usr/bin/chronyc -h 127.0.0.1,::1 waitsync 0 0.1 0.0 1 # Wait for at most 3 minutes TimeoutStartSec=180 RemainAfterExit=yes StandardOutput=null [Install] WantedBy=multi-user.target
修改文件时间
将文件时间修改为当前时间的前一年
删除文件