svstat

0.0.1 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i svstat

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • hpohlmeyer
  • thois
  • jhnns
  • meaku
  • peeri
  • matthaias
  • leomelzer
  • antosan
  • moritzjacobs