Open matbandeli opened 3 years ago
I found this discussion https://github.com/Unitech/pm2/issues/3997 which mention a similar problem
Hi @matbandeli!
This has been on my radar for a while, but it seemed inconsistent the last time I looked into it. I was able to reproduce right away with your steps on an offline machine. I believe I might have to use a different technique than the one I'm using to mitigate this. I'll have to do some research.
Thanks for reporting this!
Hi @jessety,
Thx for answering fast. It seems that the changes in this new branch are solving this issue.
p.s. I didnt test the npm run remove command to uninstall
Note that at the moment, in this branch, the npm run bundle command will only work properly if pm2 is not already installed.
This solution is a draft and there is obviously room for improvement. I am open to any proposal
Description I have installed pm2 and pm2-logrotate with pm2-installer
The issue is that the module pm2-logrotate is not restarted on laptop reboot
The problem happens when I install offline only. With an online install, pm2-logrotate is running fine after a reboot.
Steps to Reproduce
Environment Running on: 2021-2-4, pm2-installer 3.1.1 with node v12.20.1 and npm 6.14.10 on win32-10.0.19041.
I can add some logs if you think it might be usefull. (logs about install run for example).
edit : I removed some steps so that the case is simpler to reproduce, but the problem is still persisting