summarylogtreecommitdiffstats
path: root/ntpdate.service
blob: 14b854b202b7378dda499a8ee04f1c5e6bfd07b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Update system time using NTP
After=network.target nss-lookup.target

[Service]
Type=oneshot
EnvironmentFile=/etc/conf.d/ntpdate.conf
ExecStartPre=/usr/bin/sleep $NTP_CLIENT_DELAY
ExecStart=/usr/bin/ntpdate $NTP_CLIENT_OPTION -t $NTPCLIENT_TIMEOUT $NTP_CLIENT_SERVER

[Install]
WantedBy=multi-user.target