summaryrefslogtreecommitdiffstats
path: root/tools/kvm/kvm_stat/kvm_stat.service
blob: 8f13b843d5b4e47bb9eaa9d17dfdbb81596fd335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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