summaryrefslogtreecommitdiff
path: root/net-misc/ntp/files/sntp.service-r3
blob: 2ab722f2c6f120a94e8275b270d796421c514078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Set time via SNTP
After=network.target 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/bin/sntp -s $SERVER
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target