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>
[Unit]
Description=system activity accounting tool
Documentation=man:sa1(8)
+After=sysstat.service
[Service]
Type=oneshot
[Unit]
Description=Generate a daily summary of process accounting
Documentation=man:sa2(8)
+After=sysstat.service
[Service]
Type=oneshot