Tag: systemd

  • Fix PM2 Killed By SELinux + Systemd

    The Problem When you deploy PM2 managed apps (Node.js, Python, etc.) on Linux system with SELinux + Systemd, you will find the PM2 process got killed every 1~2 minutes. https://stackoverflow.com/questions/62814539/pm2-keeps-getting-killed-every-90-seconds-on-centos-8 https://github.com/Unitech/pm2/issues/4813 Since PM2 itself is killed, all managed Node.js/Python app instances will be killed, too. PM2 will auto restart after being killed, so this problem…