summaryrefslogtreecommitdiffstats
path: root/debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf')
-rw-r--r--debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf b/debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf
new file mode 100644
index 0000000..8e4f853
--- /dev/null
+++ b/debian/extra/units/systemd-timesyncd.service.d/disable-with-time-daemon.conf
@@ -0,0 +1,6 @@
+[Unit]
+# don't run timesyncd if we have another NTP daemon installed
+ConditionFileIsExecutable=!/usr/sbin/ntpd
+ConditionFileIsExecutable=!/usr/sbin/openntpd
+ConditionFileIsExecutable=!/usr/sbin/chronyd
+ConditionFileIsExecutable=!/usr/sbin/VBoxService