Skip to content

feat(startup): add systemd-user support for PM2 uninstall/setup commands - #6140

Open
supersonictw wants to merge 2 commits into
Unitech:developmentfrom
supersonictw:feat/systemd-user
Open

feat(startup): add systemd-user support for PM2 uninstall/setup commands#6140
supersonictw wants to merge 2 commits into
Unitech:developmentfrom
supersonictw:feat/systemd-user

Conversation

@supersonictw

Copy link
Copy Markdown
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #2750
License MIT
Doc PR

Summary

Add systemd-user support for pm2 startup systemd-user and pm2 unstartup systemd-user commands to generate and manage user-level systemd services via systemctl --user.

Changes

  • Add systemd-user.tpl and systemd-user-online.tpl templates (WantedBy=default.target, without User= directive).
  • Support systemd-user platform in lib/API/Startup.js allowing non-root execution.
  • Auto-create user configuration directory $HOME/.config/systemd/user/ if not present when generating systemd-user units.
  • Add TypeScript type definition in types/index.d.ts.
  • Add programmatic test test/programmatic/systemd_user.mocha.js.

@CLAassistant

CLAassistant commented Aug 3, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@supersonictw supersonictw changed the title feat: add systemd-user support for PM2 uninstall/setup commands feat(startup): add systemd-user support for PM2 uninstall/setup commands Aug 3, 2026
@supersonictw
supersonictw marked this pull request as draft August 3, 2026 02:42
@supersonictw
supersonictw marked this pull request as ready for review August 3, 2026 02:43
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

Successfully merging this pull request may close these issues.

2 participants