Patch "tools/kvm_stat: Add restart delay" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tools/kvm_stat: Add restart delay

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tools-kvm_stat-add-restart-delay.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit a93d6581a1490a1b58d09fc51a12f8987e1d5a19
Author: Stefan Raspl <raspl@xxxxxxxxxxxxx>
Date:   Thu Mar 25 13:29:49 2021 +0100

    tools/kvm_stat: Add restart delay
    
    [ Upstream commit 75f94ecbd0dfd2ac4e671f165f5ae864b7301422 ]
    
    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@xxxxxxxxxxxxx>
    Message-Id: <20210325122949.1433271-1-raspl@xxxxxxxxxxxxx>
    Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux