On 2020-03-06 12:42, Stefan Raspl wrote: > From: Stefan Raspl <raspl@xxxxxxxxxx> > > Add a sample unit file as a basis for systemd integration of kvm_stat > logs. > Note that output is written to a rotating set of logfiles in .csv format > for easy post-processing. > > Signed-off-by: Stefan Raspl <raspl@xxxxxxxxxxxxx> > --- > tools/kvm/kvm_stat/kvm_stat.service | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 tools/kvm/kvm_stat/kvm_stat.service > > diff --git a/tools/kvm/kvm_stat/kvm_stat.service b/tools/kvm/kvm_stat/kvm_stat.service > new file mode 100644 > index 000000000000..5854b285c669 > --- /dev/null > +++ b/tools/kvm/kvm_stat/kvm_stat.service > @@ -0,0 +1,15 @@ > +# 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=/root/kvm_stat -dtcr /var/log/kvm_stat.csv -T 1w -s 10 ^^^^^^ Oooops - this isn't supposed to be a full qualified path, and especially not this one. Ciao, Stefan