Kill forever-monitor background process

496 Views Asked by At

I started a Node app using forever-monitor. My forever-monitor configuration is as follows.

"use strict";

var forever = require("forever-monitor");

var child = new(forever.Monitor)("index.js", {
    silent: true
});

child.on("exit", function() {
    console.log("bot has exited");
});

It probably has started a background process but my code doesn't work as intended. How do I go and kill that process?

1

There are 1 best solutions below

3
Colton On

forever stopall should stop all processes that forever is managing.