]> git.baikalelectronics.ru Git - 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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Mar 2021 17:07:09 +0000 (13:07 -0400)
commit9fd0d9797684ccb9d4d04a590e66f5f00a978ff3
tree27d31c6f1616fa92ae3dd8b753e95bcaee1e12d3
parent94fc57693ca2ab9d8f127e7e78460b77b470b81f
tools/kvm_stat: Add restart delay

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>
tools/kvm/kvm_stat/kvm_stat.service