mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
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.
This commit is contained in:
parent
afaae43bb1
commit
e5ea741c62
@ -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 == ''
|
||||
|
1
src/timesync/80-systemd-timesync.list
Normal file
1
src/timesync/80-systemd-timesync.list
Normal file
@ -0,0 +1 @@
|
||||
systemd-timesyncd.service
|
@ -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
|
||||
|
||||
############################################################
|
||||
|
Loading…
Reference in New Issue
Block a user