Skip to content

Commit 997b7e9

Browse files
Stefan Rasplbonzini
authored andcommitted
tools/kvm_stat: add sample systemd unit file
Add a sample unit file as a basis for systemd integration of kvm_stat logs. Signed-off-by: Stefan Raspl <raspl@de.ibm.com> Message-Id: <20200402085705.61155-4-raspl@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 3754afe commit 997b7e9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
[Unit]
4+
Description=Service that logs KVM kernel module trace events
5+
Before=qemu-kvm.service
6+
7+
[Service]
8+
Type=simple
9+
ExecStart=/usr/bin/kvm_stat -dtcz -s 10 -L /var/log/kvm_stat.csv
10+
ExecReload=/bin/kill -HUP $MAINPID
11+
Restart=always
12+
SyslogIdentifier=kvm_stat
13+
SyslogLevel=debug
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)