summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/ntpdate.service-r2
blob: 7ad294eccdee179f722f6a39a9528404ce4d54e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Set time via NTP using ntpdate
After=network-online.target nss-lookup.target
Before=time-sync.target
Wants=network-online.target time-sync.target
Conflicts=systemd-timesyncd.service

[Service]
Type=oneshot
ExecStart=/usr/sbin/ntpdate -b -u $SERVER
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target