pm-msg
Programatic PM2 process.
Start, delete, sendMsg by pm2 api using typescript.
When start a pm2 process by name, will check if the name exist, if exist, will delete it then start.
When kill a pm2 process by name, will check if it exsit, also will check if it is killed successfully.
INSTALL
npm install --save pm-msg
USAGE
start a pm2
pmMsg.start
kill a pm2
pmMsg.kill'script'
send message to a pm2 process by pm2 name
pmMsg.send'script',
DOC
disconnect
The following function will disconnect automatically after done
- start
- send
- kill
connect
The following function should call pmMsg.disconnect()
at the end
- pmList
- pmNameExsit
- getProcess
- receive