0.0.1 • Published 11 years ago

svstat v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

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'
    }
}