What's this?
A node.js library for supervisord. If you're not familiar with supervisord, it's much like forever, launchd, upstart+monit, etc.
Requirements
- Node.js
- Supervisord
- NPM
Installation
npm install supervisord
Example:
var supervisord = ; var client = supervisord; client; //return all running processes by supervisord client;
Available Methods:
- getSupervisorVersion()
- getIdentification()
- getState()
- getPID()
- readLog()
- clearLog()
- shutdown()
- restart()
- getAllProcessInfo(name)
- startProcess(name)
- startAllProcesses()
- startProcessGroup()
- stopProcessGroup()
- sendProcessStdin()
- sendRemoteCommEvent()
- addProcessGroup(name)
- removeProcessGroup(name)
- readProcessStdoutLog(name)
- readProcessStderrLog(name, offset, length)
- tailProcessStdoutLog(name, offset, length)
- tailProcessStderrLog(name, offset, length)
- clearProcessLogs(name)
- clearAllProcesssLogs()
- signalProcess(name, signal)
- signalProcessGroup(name, signal)