mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
25 lines
572 B
JavaScript
25 lines
572 B
JavaScript
var axm = require('axm');
|
|
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
fs.readFile(path.join(process.env.HOME, '.pm2', 'pm2.pid'), function(err, data) {
|
|
|
|
var pid = data.toString();
|
|
|
|
axm.configureModule({
|
|
name : 'PM2',
|
|
version : '0.12.1',
|
|
pid : pid,
|
|
errors : false,
|
|
latency : false,
|
|
versioning : false,
|
|
show_module_meta : true,
|
|
author : 'Alexandre Strzelewicz',
|
|
comment : 'This module monitors PM2'
|
|
});
|
|
|
|
});
|
|
|
|
setInterval(function() {
|
|
}, 1000);
|