github Unitech/pm2 v7.1.2

3 hours ago

7.1.2

Bug Fixes

  • pm2 update under a pm2 startup systemd unit no longer gets its new daemon and apps killed by ExecStop=pm2 kill (systemd >= 232) #5000
  • filter_env: true works again (ignored since 4.4.1): apps only inherit PATH, HOME, USER, locales and a few OS variables besides their env #6176
  • filter_env also applies to --update-env restart/reload and to cluster workers; --filter-env alone means true #6176
  • pm2.disconnect() no longer throws nor calls back twice when a socket takes more than 200ms to close
  • pm2 start --container uses keymetrics/pm2:<node>-trixie (was the 2018 latest image, and --node-version pointed to tags that do not exist)

Breaking change

  • filter_env: true apps no longer inherit other shell variables (NODE_ENV, NODE_OPTIONS, HTTP_PROXY...): declare them in env #6176
  • An app keeps the shell env it already received when the filter comes later (started before 7.1.2 or without filter_env, dump.pm2 included): pm2 delete it and start it again #6176

Don't miss a new pm2 release

NewReleases is sending notifications on new releases.