start ptp4l, timemaster and phc2sys after network-online target

This commit is contained in:
Miroslav Lichvar 2018-11-13 12:24:54 +01:00
parent 72a2bb640b
commit f203e7a971
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[Unit]
Description=Synchronize system clock or PTP hardware clock (PHC)
After=ntpdate.service
After=ntpdate.service ptp4l.service
[Service]
Type=simple

View File

@ -1,5 +1,7 @@
[Unit]
Description=Precision Time Protocol (PTP) service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple

View File

@ -1,7 +1,8 @@
[Unit]
Description=Synchronize system clock to NTP and PTP time sources
After=chronyd.service ntpd.service ntpdate.service sntp.service
After=chronyd.service ntpd.service ntpdate.service sntp.service network-online.target
Conflicts=chronyd.service ntpd.service phc2sys.service ptp4l.service
Wants=network-online.target
[Service]
Type=simple