Unitech / Unitech/pm2

shutdown_with_message is not available in Javascript API

Open
#5,965 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.