Last active
          August 29, 2015 14:21 
        
      - 
      
 - 
        
Save tomasinouk/1c59a99c82ed8df7c3f5 to your computer and use it in GitHub Desktop.  
    logrotate and pm2 logs
  
        
  
    
      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 characters
    
  
  
    
  | # logrotate and pm2 logs | |
| # file location | |
| # /etc/logrotate.d/pm2 | |
| /root/.pm2/logs/*.log { | |
| daily | |
| rotate 15 | |
| missingok | |
| notifempty | |
| sharedscripts | |
| dateext | |
| dateformat %Y-%m-%d | |
| postrotate | |
| pm2 reloadLogs | |
| endscript | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment