summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/ntpdate.service-r1
blob: f9bc9ddefc90c6ccf7d5fefa1c12432f18dbe93c (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=time-sync.target
Conflicts=systemd-timesyncd.service             

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

[Install]
WantedBy=multi-user.target