tools/kvm_stat: Add restart delay
authorStefan Raspl <raspl@linux.ibm.com>
Thu, 25 Mar 2021 12:29:49 +0000 (13:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:20 +0000 (11:43 +0200)
commite4a0956574c741ca183084b9cd8f3bccec8dbd56
tree9fa99ccdf35f66c17dd9a97111a4af9813f7ec96
parent1dcb3ebc24164c0b5d3b13696d80bf163e16b664
tools/kvm_stat: Add restart delay

[ Upstream commit 75f94ecbd0dfd2ac4e671f165f5ae864b7301422 ]

If this service is enabled and the system rebooted, Systemd's initial
attempt to start this unit file may fail in case the kvm module is not
loaded. Since we did not specify a delay for the retries, Systemd
restarts with a minimum delay a number of times before giving up and
disabling the service. Which means a subsequent kvm module load will
have kvm running without monitoring.
Adding a delay to fix this.

Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Message-Id: <20210325122949.1433271-1-raspl@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/kvm/kvm_stat/kvm_stat.service