Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

Install

npm i svstat

DownloadsWeekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar