1.0.0 • Published 4 years ago

rpm2 v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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

Note: the webserver runs on port 8008

The API

MethodEndpointDataReturnsFunctional Equivalent
POST/start(body json) process: The command or the process id to startProcess data or errorpm2 start body.process
POST/stop(body json) process: The process id to stopProcess data or errorpm2 stop body.process
POST/restart(body json) process: The process id to restartProcess data or errorpm2 restart body.process
POST/delete(body json) process: The process id to deleteProcess data or errorpm2 delete body.process
GET/describe/:process(url) process: The process id to describeProcess data or errorpm2 describe url.process
GET/listnoneProcess data or errorpm2 list
POST/signal(body json) signal: The signal to send(body json) process: The process to send a signal toProcess data or errorpm2 sendSignal body.signal