Re: [PATCH 7/7] tools/kvm_stat: add sample systemd unit file

Stefan Raspl
2020-03-29T11:22:36Z

On 2020-03-06 12:42, Stefan Raspl wrote:
> From: Stefan Raspl <raspl@de.ibm.com>
>
> 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@linux.ibm.com>
> ---
> 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