diff options
author | Stefan Raspl <raspl@linux.ibm.com> | 2021-03-25 13:29:49 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-30 19:07:09 +0200 |
commit | 75f94ecbd0dfd2ac4e671f165f5ae864b7301422 (patch) | |
tree | 27d31c6f1616fa92ae3dd8b753e95bcaee1e12d3 /tools/kvm | |
parent | Merge tag 'kvmarm-fixes-5.12-3' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
download | linux-75f94ecbd0dfd2ac4e671f165f5ae864b7301422.tar.xz linux-75f94ecbd0dfd2ac4e671f165f5ae864b7301422.zip |
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>
Diffstat (limited to 'tools/kvm')
-rw-r--r-- | tools/kvm/kvm_stat/kvm_stat.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat.service b/tools/kvm/kvm_stat/kvm_stat.service index 71aabaffe779..8f13b843d5b4 100644 --- a/tools/kvm/kvm_stat/kvm_stat.service +++ b/tools/kvm/kvm_stat/kvm_stat.service @@ -9,6 +9,7 @@ Type=simple ExecStart=/usr/bin/kvm_stat -dtcz -s 10 -L /var/log/kvm_stat.csv ExecReload=/bin/kill -HUP $MAINPID Restart=always +RestartSec=60s SyslogIdentifier=kvm_stat SyslogLevel=debug |