svstat
a node.js wrapper for daemontools svstat
Last updated 7 years ago by peerigon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install svstat 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |