shutdown_with_message is not available in Javascript API
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 43.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
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.
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names pm2.StartOptions and pm2.start as entry points; begin by tracing how the option is typed and passed through the JavaScript API. Done means the option is accepted rather than ignored and works for the Windows Server use case described, with relevant coverage added if the project has tests for this API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, typescript
- Domain
- api, devops, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100