mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user