svstat

a node.js wrapper for daemontools svstat

npm install svstat
1 downloads in the last week
4 downloads in the last month

svstat

A node.js wrapper for daemontools svstat.

Example


var svstat = require("svstat");

var serviceDir = "./service";

svstat(serviceDir, function(err, result) {
    console.log(result);
});

Result

{
    mongodb: {
        name: 'mongodb',
        status: 'up',
        pid: '1626',
        uptime: '663786'
    },
    backup: {
        name: 'backup',
        status: 'up',
        pid: '2628',
        uptime: '56660'
    },
    svcMonitor: {
        name: 'svcMonitor',
        status: 'down',
        uptime: null,
        pid: null,
        downtime: '2790'
    }
}
npm loves you