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
This commit is contained in:
Ian Wienand 2021-03-25 09:15:19 +11:00
parent c164b6f192
commit d0f2e12f85

View File

@ -18,6 +18,7 @@
ExecStart=/usr/bin/dstat -tcmndrylpg --tcp --swap --output /var/log/dstat-csv.log ExecStart=/usr/bin/dstat -tcmndrylpg --tcp --swap --output /var/log/dstat-csv.log
KillMode=process KillMode=process
TimeoutStopSec=300 TimeoutStopSec=300
StandardOutput=null
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
- name: Reload systemd - name: Reload systemd