-
-
Save hoangtranwork/4f915f90e336b2e5b56426c13d7153f4 to your computer and use it in GitHub Desktop.
Revisions
-
ledongthuc created this gist
Sep 7, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ sudo bash -c "cat <<EOT > /etc/logrotate.d/api /opt/app/*.log { missingok notifempty compress size 10k daily copytruncate compress sharedscripts rotate 1 maxage 1 create 0644 <username> <groupname> } /opt/app/jackrabbit.log_IS_UNDEFINED { missingok notifempty compress size 10k daily copytruncate compress sharedscripts rotate 1 maxage 1 create 0644 <username> <groupname> } jetty.log_IS_UNDEFINED { missingok notifempty compress size 10k daily copytruncate compress sharedscripts rotate 1 maxage 1 create 0644 <username> <groupname> } EOT"