]> granicus.if.org Git - sysstat/commitdiff
Start collect and summary systemd services after sysstat.service
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 16 Jun 2017 13:17:33 +0000 (15:17 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 16 Jun 2017 13:17:33 +0000 (15:17 +0200)
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 <tommi.t.rantala@nokia.com>
Acked-by: Tomasz Torcz <tomek@pipebreaker.pl>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
cron/sysstat-collect.service.in
cron/sysstat-summary.service.in

index 15d57dc45f58e6350e0c4f9a17f6658c5ebeb94d..220eb1e97e89bcf8583e75b6e4edbf2705119e4c 100644 (file)
@@ -8,6 +8,7 @@
 [Unit]
 Description=system activity accounting tool
 Documentation=man:sa1(8)
+After=sysstat.service
 
 [Service]
 Type=oneshot
index 126e90bfccb684fb46352df28af0559bc641fcec..d749be534aa3e809784c2d1654a92444fa408d14 100644 (file)
@@ -7,6 +7,7 @@
 [Unit]
 Description=Generate a daily summary of process accounting
 Documentation=man:sa2(8)
+After=sysstat.service
 
 [Service]
 Type=oneshot