Created
June 29, 2023 03:01
-
-
Save nshermione/2493faefe25ff032be9e2381882dd28e to your computer and use it in GitHub Desktop.
pm2 logrotate config
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
pm2 set pm2-logrotate:max_size 30M | |
pm2 set pm2-logrotate:retain 200 | |
pm2 set pm2-logrotate:compress true | |
pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss | |
pm2 set pm2-logrotate:workerInterval 30 | |
pm2 set pm2-logrotate:rotateInterval 0 0 * * * | |
pm2 set pm2-logrotate:rotateModule true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment