ntpdate.service-r1 316 B

123456789101112131415
  1. [Unit]
  2. Description=Set time via NTP using ntpdate
  3. After=network-online.target nss-lookup.target
  4. Before=time-sync.target
  5. Wants=time-sync.target
  6. Conflicts=systemd-timesyncd.service
  7. [Service]
  8. Type=oneshot
  9. ExecStart=/usr/sbin/ntpdate -b -u $SERVER
  10. RemainAfterExit=yes
  11. [Install]
  12. WantedBy=multi-user.target