From 22d1d275d3b2a0e920e4218f9ffce9e2674f1905 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 16 Jun 2017 15:17:33 +0200 Subject: [PATCH] Start collect and summary systemd services after sysstat.service When booting a system, systemd could start sysstat.service and sysstat-collect.service at the exact same time, causing sysstat.service to fail with the "flock: Resource temporarily unavailable" error message. To avoid the failure, ensure that sysstat.service is started before the collect and summary services and timers, by adding "After=sysstat.service" ordering dependencies. Signed-off-by: Tommi Rantala Acked-by: Tomasz Torcz Signed-off-by: Sebastien GODARD --- cron/sysstat-collect.service.in | 1 + cron/sysstat-summary.service.in | 1 + 2 files changed, 2 insertions(+) diff --git a/cron/sysstat-collect.service.in b/cron/sysstat-collect.service.in index 15d57dc..220eb1e 100644 --- a/cron/sysstat-collect.service.in +++ b/cron/sysstat-collect.service.in @@ -8,6 +8,7 @@ [Unit] Description=system activity accounting tool Documentation=man:sa1(8) +After=sysstat.service [Service] Type=oneshot diff --git a/cron/sysstat-summary.service.in b/cron/sysstat-summary.service.in index 126e90b..d749be5 100644 --- a/cron/sysstat-summary.service.in +++ b/cron/sysstat-summary.service.in @@ -7,6 +7,7 @@ [Unit] Description=Generate a daily summary of process accounting Documentation=man:sa2(8) +After=sysstat.service [Service] Type=oneshot -- 2.49.0