Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.22 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.22 KB

rpm2 logo

Remote PM2




A simple daemonized wrapper for pm2 which exposes a web api for controlling pm2 remotely.

Note: the webserver runs on port 8008

The API

Method Endpoint Data Returns Functional Equivalent
POST /start (body json) process: The command or the process id to start Process data or error pm2 start [body.process]
POST /stop (body json) process: The process id to stop Process data or error pm2 stop [body.process]
POST /restart (body json) process: The process id to restart Process data or error pm2 restart [body.process]
POST /delete (body json) process: The process id to delete Process data or error pm2 delete [body.process]
GET /describe/:process (url) process: The process id to describe Process data or error pm2 describe [url.process]
GET /list none Process data or error pm2 list
POST /signal (body json) signal: The signal to send
(body json) process: The process to send a signal to
Process data or error pm2 sendSignal [body.signal] [body.process]