Skip to content

Commit

Permalink
tools/kvm_stat: Add restart delay
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Raspl authored and bonzini committed Mar 30, 2021
1 parent 41793e7 commit 75f94ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/kvm/kvm_stat/kvm_stat.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 75f94ec

Please sign in to comment.