Skip to content

Commit e5ea741

Browse files
committed
timesyncd: add ntp-units.d/ entry for timesync
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.
1 parent afaae43 commit e5ea741

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ systemdstatedir = join_paths(localstatedir, 'lib/systemd')
157157
catalogstatedir = join_paths(systemdstatedir, 'catalog')
158158
randomseeddir = join_paths(localstatedir, 'lib/systemd')
159159
profiledir = join_paths(rootlibexecdir, 'portable', 'profile')
160+
ntpservicelistdir = join_paths(rootprefixdir, 'lib/systemd/ntp-units.d')
160161

161162
docdir = get_option('docdir')
162163
if docdir == ''
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
systemd-timesyncd.service

src/timesync/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ if conf.get('ENABLE_TIMESYNCD') == 1
3232
install_dir : dbuspolicydir)
3333
install_data('org.freedesktop.timesync1.service',
3434
install_dir : dbussystemservicedir)
35+
install_data('80-systemd-timesync.list',
36+
install_dir : ntpservicelistdir)
3537
endif
3638

3739
############################################################

0 commit comments

Comments
 (0)