3 Commits

Author SHA1 Message Date
Luis Lobo Borobia
211c4714d6 fix logrotate template (#2814)
* It should only log rotate on log files

As explained in https://github.com/Unitech/pm2/issues/2498#issuecomment-263678535 :

The logs are being saved as index-out-0.log and index-error-0.log.
If you just leave /home/user/.pm2/pm2.log /home/user/.pm2/logs/*, the first time logrotate runs, it generates index-out-0.log.1. The second time it runs it generates index-out-0.log.1.1, and it continues creating files for each file found, since you are including all files.
It should be reverted back to *.log or *log
2017-04-06 10:50:37 +02:00
Antoine Bluchet
bc99eac8d6 Logrotate on all files in ~/.pm2/logs 2016-11-08 08:56:51 +01:00
Unitech
1886f73a2f #2203 deep refactor 2016-06-04 14:04:26 +02:00