Skip to content

Commit 49cbb34

Browse files
committed
#5957 — openrc.tpl perms + #6045 — port?: number in StartOptions + #5925 — max memory restart in pm2 describe
1 parent 2372f6a commit 49cbb34

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
### Bug Fixes
55

66
- Fix Python (and other non-Node) interpreter regression on Ubuntu: bun runtime detection used a naive `includes('bun')` substring check that matched any path containing the letters "bun" — most notably `/home/ubuntu/...`. Affected paths were routed through `ProcessContainerForkBun.js` and crashed with `SyntaxError: unterminated string literal` when Python tried to parse the JS container. Anchored the match to the end of the interpreter path (`=== 'bun'` or `/bun$/`) in both `lib/God/ForkMode.js` and `lib/Common.js` #5990
7+
- Display `max_memory_restart` in `pm2 describe` output when set #5925
8+
- Add missing `port` option to `StartOptions` TypeScript declaration #6045
9+
- Fix incorrect file permissions on `openrc.tpl` template (0755 → 0644) #5957
710

811
## 7.0.0
912

lib/API/UX/pm2-describe.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ module.exports = function(proc) {
8282
table.splice(5, 0, {'cron restart': pm2_env.cron_restart})
8383
}
8484

85+
if (pm2_env.max_memory_restart){
86+
table.splice(5, 0, {'max memory restart': pm2_env.max_memory_restart})
87+
}
88+
8589
console.log(table.toString())
8690

8791
/**

lib/templates/init-scripts/openrc.tpl

100755100644
File mode changed.

types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ export interface StartOptions {
494494
* Uses human-friendly suffixes: ‘K’ for kilobytes, ‘M’ for megabytes, ‘G’ for gigabytes’, etc. Eg “150M”.
495495
*/
496496
max_memory_restart?: number | string;
497+
/**
498+
* Shortcut to inject a PORT environment variable into the started process.
499+
*/
500+
port?: number;
497501
/**
498502
* Arguments to pass to the interpreter
499503
*/

0 commit comments

Comments
 (0)