]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: add ntp-units.d/ entry for timesync
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Jul 2019 12:47:51 +0000 (14:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Jul 2019 13:21:23 +0000 (15:21 +0200)
Priority is 80. At least in Fedora, chrony uses 50, and ntpd 60.
timesyncd has lower priority, because if people install those other packages,
it's most likely on purpose. timesyncd is always installed and provides
less functionality.

meson.build
src/timesync/80-systemd-timesync.list [new file with mode: 0644]
src/timesync/meson.build

index 04a830cdfaa3078192663f5ef64655acee09090f..09abd9e2ec673b222d1e99c5d246a44cd8ddaec4 100644 (file)
@@ -157,6 +157,7 @@ systemdstatedir = join_paths(localstatedir, 'lib/systemd')
 catalogstatedir = join_paths(systemdstatedir, 'catalog')
 randomseeddir = join_paths(localstatedir, 'lib/systemd')
 profiledir = join_paths(rootlibexecdir, 'portable', 'profile')
+ntpservicelistdir = join_paths(rootprefixdir, 'lib/systemd/ntp-units.d')
 
 docdir = get_option('docdir')
 if docdir == ''
diff --git a/src/timesync/80-systemd-timesync.list b/src/timesync/80-systemd-timesync.list
new file mode 100644 (file)
index 0000000..d5959ad
--- /dev/null
@@ -0,0 +1 @@
+systemd-timesyncd.service
index b79ef08277a31fa40d31835d8e6711bca365213f..e5c118c8db7b1cc1cd91391317ddb317f77714a6 100644 (file)
@@ -32,6 +32,8 @@ if conf.get('ENABLE_TIMESYNCD') == 1
                      install_dir : dbuspolicydir)
         install_data('org.freedesktop.timesync1.service',
                      install_dir : dbussystemservicedir)
+        install_data('80-systemd-timesync.list',
+                     install_dir : ntpservicelistdir)
 endif
 
 ############################################################