xref: /OK3568_Linux_fs/kernel/tools/kvm/kvm_stat/kvm_stat.service (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun[Unit]
4*4882a593SmuzhiyunDescription=Service that logs KVM kernel module trace events
5*4882a593SmuzhiyunBefore=qemu-kvm.service
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun[Service]
8*4882a593SmuzhiyunType=simple
9*4882a593SmuzhiyunExecStart=/usr/bin/kvm_stat -dtcz -s 10 -L /var/log/kvm_stat.csv
10*4882a593SmuzhiyunExecReload=/bin/kill -HUP $MAINPID
11*4882a593SmuzhiyunRestart=always
12*4882a593SmuzhiyunRestartSec=60s
13*4882a593SmuzhiyunSyslogIdentifier=kvm_stat
14*4882a593SmuzhiyunSyslogLevel=debug
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun[Install]
17*4882a593SmuzhiyunWantedBy=multi-user.target
18