LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   How to silence sysstat-collect.service? (https://www.linuxquestions.org/questions/linux-distributions-5/how-to-silence-sysstat-collect-service-4175692364/)

Sheriff Hobbes 03-20-2021 09:54 AM

How to silence sysstat-collect.service?
 
Good afternoon!

The sar tool collects load values every 10 minutes on my Oracle Linux 8.3 via the service sysstat-collect.service. It fills /var/log/messages with

Quote:

systemd[1]: sysstat-collect.service: Succeeded.
systemd[1]: Started system activity accounting tool.
every 10 minutes. That's annoying, I want to silence it. I've already tried three possible solutions which did not work:

1. Adding the override
Code:

[Service]
StandardOutput=null

to the systemd unit

2. Adding the override
Code:

[Service]
LogLevelMax=warning

to the systemd unit

3. Changing the command to
Code:

ExecStart=/bin/sh -c '/usr/lib64/sa/sa1 1 1 > /var/log/sysstat-collect'
in the systemd unit

Any ideas?

Thanks,
SH

Jan K. 03-21-2021 11:55 PM

Is it even possible to start or run anything without it being registered in a log file?


All times are GMT -5. The time now is 03:37 PM.