forever-remote

Remote access to forever using dnode

Forever remote

control forever processes through network

$ [sudo] npm install forever-remote -g
var createServer = require('forever-remote').createServer;
 
createServer(5004);
var createClient = require('../lib/client.js').createClient;
 
createClient(5004, "localhost", function(errforever) {
   
   // use forever commands here 
   
});
forever.list(null , function (errprocesses) {
    console.log(err, processes);
    forever.end();
});
forever.start(["node", "test/worker2.js", "ici un premier param", "ici un second"], {} , function (err) {
    console.log("started !");
    forever.end();
});
forever.stop(0 , function (errprocesses) {
    console.log("Done !");
    forever.end();
});
forever.tail( 0, 50 , function (errprocesses) {
    console.log(err, processes);
    forever.end();
});