Skip to content

Commit 75f94ec

Browse files
Stefan Rasplbonzini
authored andcommitted
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>
1 parent 41793e7 commit 75f94ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/kvm/kvm_stat/kvm_stat.service‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Type=simple
99
ExecStart=/usr/bin/kvm_stat -dtcz -s 10 -L /var/log/kvm_stat.csv
1010
ExecReload=/bin/kill -HUP $MAINPID
1111
Restart=always
12+
RestartSec=60s
1213
SyslogIdentifier=kvm_stat
1314
SyslogLevel=debug
1415

0 commit comments

Comments
 (0)