]> git.ipfire.org Git - thirdparty/systemd.git/commit
timedated: always enable&start the service with highest priority 13265/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 5 Aug 2019 10:50:11 +0000 (12:50 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Aug 2019 13:04:03 +0000 (15:04 +0200)
commit0957790b5f8e1526877306c9727e6248d905bb9a
tree62e2e22b74e303dd9c03f48e4902f32f22447389
parentad7fb9434c8883cc81b58042613188a8e76214f0
timedated: always enable&start the service with highest priority

This removes a special case that was implemented before: if some service
was already enabled, we'd treat it as having higher priority.

From https://bugzilla.redhat.com/show_bug.cgi?id=1735584#c4:
> Setting ntp off and on should give the same result as just setting it
> on. There should be no stickiness (hidden state). It should behave like
> running an ansible role.
>
> The other service might have been enabled because no other was installed at
> the time. If I install a new NTP service with a higher priority, setting ntp
> on should enable and start the new service, and disable all other. Also, if
> for some reason multiple services are enabled, after setting ntp on there
> should be only one enabled to avoid systemd selecting between them randomly
> on the next boot.
src/timedate/timedated.c