-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
PM2 has a logrotate module, but Ubuntu also has logrotate installed by default.
As part of the pm2 task the following script should be added to /etc/logrotate.d/pm2-user
/home/ubuntu/.pm2/pm2.log /home/ubuntu/.pm2/logs/*.log {
rotate 12
weekly
missingok
notifempty
compress
delaycompress
create 0640 ubuntu ubuntu
}
- There is an option to bypass the task (for example if you want to use different log rotate params)
(can template the ssh user)
Metadata
Metadata
Assignees
Labels
No labels