]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tools/kvm_stat: Add restart delay
authorStefan Raspl <raspl@linux.ibm.com>
Thu, 25 Mar 2021 12:29:49 +0000 (13:29 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 May 2021 07:53:49 +0000 (09:53 +0200)
commite6494a33406d95eb99729f812b560fd729a275e0
tree92cbee17e9704fceb69096463f2cffbb129b4e10
parentc7b09700cad6be1143a657d92675bdba310a8732
tools/kvm_stat: Add restart delay

BugLink: https://bugs.launchpad.net/bugs/1926993
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/kvm/kvm_stat/kvm_stat.service