PM2 is convenient for Node on a single VPS; systemd is the portable supervisor for any binary and pairs well with journald. Prefer systemd when you already live on Linux units.
Checklist
- Use ecosystem.env for PM2 secrets carefully
- systemd: EnvironmentFile with 600 perms
- Both: graceful SIGTERM handlers
- Both: restart rate limits to avoid crash loops
Related
Frequently asked questions
Is this exhaustive?
No. It is a practical starting point; verify details in official docs before production.