![]() ![]() bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript This is an example of a /etc/logrotate.d/httpd So I was going to set something up like this that I found online. I want to remove apache logs after about a month. I’ve been doing some more research and had another question if you wouldn’t mine throwing in some input. Thank you for pointing me in the right direction. There are other methods too as discussed in the comments section below. This page showed how to empty or delete a large log file contents in Linux and Unix like systems. Each log file may be handled daily, weekly, monthly, or when it grows too large. ![]() It allows automatic rotation, compression, removal, and mailing of log files. It is designed to ease administration of systems that generate large numbers of log files. Join Patreon ➔ Say hello to logrotate toolĪ better approach is to use logrotate tool. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |