Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutdown_with_message is not available in Javascript API #5965

Open
greg-md opened this issue Mar 19, 2025 · 0 comments
Open

shutdown_with_message is not available in Javascript API #5965

greg-md opened this issue Mar 19, 2025 · 0 comments

Comments

@greg-md
Copy link

greg-md commented Mar 19, 2025

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 greg-md changed the title shutdown_with_message is not available when starting a process from script shutdown_with_message is not available in Javascript API Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant