Skip to content

shutdown_with_message is not available in Javascript API #5965

@greg-md

Description

@greg-md

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.
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions