pm2-hive / pm2-hive.github.io

Documentation website for PM2
http://pm2.keymetrics.io
Other
107 stars 220 forks source link

native logrotate issues #212

Open amitrohatgi opened 3 years ago

amitrohatgi commented 3 years ago

sudo pm2 logrotate -u user from an account that is not named "user" doesn't do what's expected. For example, if my account name is "pi" and I execute this command, it does the following in lograte.d/:

/home/pi/.pm2/pm2.log /home/pi/.pm2/logs/*.log {
        rotate 12
        weekly
        missingok
        notifempty
        compress
        delaycompress
        create 0640 user user
}