1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

core/service: call service_enter_running() if live mount fails

service_enter_running() would re-arm timer for RuntimeMaxSec=,
hence it should be called instead of disabling timer completely
when live mount operation fails, in a similar fashion as
service_enter_reload_by_notify().
This commit is contained in:
Mike Yuan 2024-10-22 19:30:50 +02:00
parent a6eeca9a00
commit 20366875f9
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -5299,7 +5299,7 @@ static int service_live_mount(Unit *u,
fail:
s->live_mount_result = SERVICE_FAILURE_RESOURCES;
s->timer_event_source = sd_event_source_disable_unref(s->timer_event_source);
service_enter_running(s, SERVICE_SUCCESS);
return r;
}