sntp.service-r2 324 B

123456789101112131415
  1. [Unit]
  2. Description=Set time via SNTP
  3. After=network.target NetworkManager-wait-online.service 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/bin/sntp -s $SERVER
  10. RemainAfterExit=yes
  11. [Install]
  12. WantedBy=multi-user.target