buildroot/package/linuxptp/linuxptp-system-clock.service
Jérémy Rosen c561bcbf5f package/linuxptp adapt to systemctl preset-all
linuxptp has two services
* linuxptp.service : the actual daemon
* linuxptp-system-clock.service : sync the linux clock to the phc clock

The first was enabled, the second was not, we now enable both

The second has an incorrect (though harmless) WantedBy : there is an
explicit Wants= in linuxptp.service

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2019-12-18 18:33:22 +01:00

11 lines
228 B
Desktop File

[Unit]
Description=Precision Time Protocol system clock synchronization
After=linuxptp.service
[Service]
ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
Restart=always
[Install]
WantedBy=multi-user.target