PM2 Startup on Boot (systemd)

Register PM2 with systemd so your Node apps restart after a reboot.

Generates and executes the startup hook so PM2 and all its managed processes restart automatically after a server reboot. Run the output command as root.

When you need this: After configuring PM2 to manage your Node.js processes, before rebooting.

Command


        
7 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.