mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
package: linuxptp: enhance systemd service
linuxptp now pulls in the time-sync.target, which other services can use to make sure they have a valid time before starting. phc2sys (linuxptp-system-clock.service) starts after ptp4l (linuxptp.service) so we have a valid time before writing it to the hardware clock. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
96123c1c4f
commit
85519fc692
@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Precision Time Protocol system clock synchronization
|
Description=Precision Time Protocol system clock synchronization
|
||||||
After=syslog.target network.target
|
After=linuxptp.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
|
ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Precision Time Protocol daemon
|
Description=Precision Time Protocol daemon
|
||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
Before=time-sync.target
|
||||||
|
Wants=time-sync.target
|
||||||
Wants=linuxptp-system-clock.service
|
Wants=linuxptp-system-clock.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user