Logrotate 로그 관리하기 - 실전


Logrotate 로그 관리하기 - 실전

vi apache_accesslog ================================================================================= /usr/local/apache/logs/access_log { daily rotate 5 maxage 4 missingok size +500M ifempty create 0644 root root postrotate /bin/kill -HUP cat /usr/local/apache/logs/httpd.pid 2>/dev/null 2> /dev/null || true endscript } ================================================================================= chmod 644 apache_accesslog ======================================================================...


#echo

원문링크 : Logrotate 로그 관리하기 - 실전