From d0f2e12f85ad2c99c466d16058131f617561c256 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 25 Mar 2021 09:15:19 +1100 Subject: [PATCH] dstat-logger: redirect stdout to /dev/null The dstat-logger service puts a lot of info into the syslog/journal. The --output command to write CSV files doesn't appear to suppress the console output, and I can't see a flag to make it do that. So redirect the stdout to /dev/null. Change-Id: Ib99f8199ebc3c9d89c2b3aa92dff5ff298d03e45 --- playbooks/roles/dstat-logger/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/dstat-logger/tasks/main.yaml b/playbooks/roles/dstat-logger/tasks/main.yaml index 92e8a84cd7..1fe59e0170 100644 --- a/playbooks/roles/dstat-logger/tasks/main.yaml +++ b/playbooks/roles/dstat-logger/tasks/main.yaml @@ -18,6 +18,7 @@ ExecStart=/usr/bin/dstat -tcmndrylpg --tcp --swap --output /var/log/dstat-csv.log KillMode=process TimeoutStopSec=300 + StandardOutput=null [Install] WantedBy=multi-user.target - name: Reload systemd