pm2 icon indicating copy to clipboard operation
pm2 copied to clipboard

shutdown_with_message is not available in Javascript API

Open greg-md opened this issue 11 months ago • 0 comments

Hello,

I am trying to start a process from NodeJS, but seems like shutdown_with_message option is not available in the pm2.StartOptions. Can it be added? I want to use it on a Windows Server environment where kill signals are not working.

import * as pm2 from 'pm2';

pm2.start({
  name: 'test',
  script: './test.js',
  shutdown_with_message: true, // Option not available and is ignored.
});

greg-md avatar Mar 19 '25 18:03 greg-md