sar cron 주기 수정

2023. 2. 17. 14:29Linux/CentOS 9

728x90
SMALL

- 개요

CentOS 9 에서 sar cron 주기 변경 10분 -> 1분

 

 

- 방법

[root@ecs ]# cat /usr/lib/systemd/system/sysstat-collect.timer
# /usr/lib/systemd/system/sysstat-collect.timer
# (C) 2014 Tomasz Torcz <tomek@pipebreaker.pl>
#
# sysstat-12.5.4 systemd unit file:
#        Activates activity collector every 10 minutes

[Unit]
Description=Run system activity accounting tool every 1 minutes

[Timer]
OnCalendar=*:00/1

[Install]
WantedBy=sysstat.service

[root@ecs ]# systemctl daemon-reload
728x90
LIST