Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Lists for supervisord events and raises them

branch: master
README.md

node-supervisord-eventlistener

This library implements a Supervisord event listener for Node.js.

Install

npm install supervisord-eventlistener

Usage

var supervisor = require("supervisord-eventlistener");
supervisor.on("event", function(type, headers, data) {
    //Gets called for all events
    console.error("Event type:", type);
    console.error("Headers:", headers);
    console.error("Data:", data);
});
supervisor.on("PROCESS_STATE_STOPPING", function(headers, data) {
    //Only called for PROCESS_STATE_STOPPING events
    console.error("Process state stopping");
    console.error("Headers:", headers);
    console.error("Data:", data);
});
supervisor.listen(process.stdin, process.stdout);

More Documentation

List of event types: click here

See http://supervisord.org/events.html for more documentation.

Something went wrong with that request. Please try again.