summaryrefslogtreecommitdiff
blob: 9bdd578ffbc723836fae165e43edc2feb696b125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Set time via SNTP
After=network.target NetworkManager-wait-online.service nss-lookup.target
Before=time-sync.target
Wants=time-sync.target
Conflicts=systemd-timesyncd.service             

[Service]
Type=oneshot
ExecStart=/usr/bin/sntp -s $SERVER
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target