mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 17:19:02 +00:00
e4a0956574
[ Upstream commit 75f94ecbd0
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
17 lines
368 B
Desktop File
17 lines
368 B
Desktop File
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
[Unit]
|
|
Description=Service that logs KVM kernel module trace events
|
|
Before=qemu-kvm.service
|
|
|
|
[Service]
|
|
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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|