-
Notifications
You must be signed in to change notification settings - Fork 2.7k
restartProcessId Error #1233
Copy link
Copy link
Closed
Description
Hello.
using pm2-interface.
https://www.npmjs.com/package/pm2-interface
Example, restartProcessId.
So, My result.
[Error: opts.id not passed to restartProcessId]
I used my server pm_id.
ipm2.rpc.restartProcessId(pm_id, function(err, dt) {
Why show the error??
how to write?? help me, please.
var ipm2 = require('pm2-interface')();
ipm2.on('ready', function() {
console.log('Connected to pm2');
ipm2.bus.on('*', function(event, data){
console.log(event, data.pm2_env.name);
});
setTimeout(function() {
ipm2.rpc.restartProcessId(0, function(err, dt) {
console.log(dt);
});
}, 2000);
ipm2.rpc.getMonitorData({}, function(err, dt) {
console.log(dt);
});
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels