Last active
August 18, 2016 11:37
-
-
Save nanlabsweb/8831f021ba2539d402da46caba88c677 to your computer and use it in GitHub Desktop.
POST - Logrotate example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/example/*.log { | |
su example adm | |
daily | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 644 example adm | |
postrotate | |
restart example | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment