Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stefan Raspl and committed by
Paolo Bonzini
75f94ecb 41793e7f

+1
+1
tools/kvm/kvm_stat/kvm_stat.service
··· 9 9 ExecStart=/usr/bin/kvm_stat -dtcz -s 10 -L /var/log/kvm_stat.csv 10 10 ExecReload=/bin/kill -HUP $MAINPID 11 11 Restart=always 12 + RestartSec=60s 12 13 SyslogIdentifier=kvm_stat 13 14 SyslogLevel=debug 14 15