mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
timesyncd: add Conflicts for ntpd and chronyd
Users might end up with more than one of those service enabled, through admin mistake, or broken installation scriptlets, or whatever. On my machine, I had both chronyd and timesyncd happilly running at the same time. If more than one is enabled, it's better to have just one running. Adding Conflicts will make the issue more visible in logs too.
This commit is contained in:
parent
e5ea741c62
commit
971a7a1526
@ -15,6 +15,7 @@ ConditionVirtualization=!container
|
||||
DefaultDependencies=no
|
||||
After=systemd-remount-fs.service systemd-sysusers.service
|
||||
Before=time-set.target sysinit.target shutdown.target
|
||||
Conflicts=chronyd.service ntpd.service
|
||||
Conflicts=shutdown.target
|
||||
Wants=time-set.target time-sync.target
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user