How to use the forever.cli function in forever

To help you get started, we’ve selected a few forever examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zenirc / zenircbot / services / admin.js View on Github external
if (services[service]) {
        if (services[service].running) {
            zen.send_admin_message(service + ' is already running');
        } else {
            zen.send_admin_message('starting ' + service);
            services[service].start();
        }
    } else {
        zen.send_admin_message('starting ' + service);
        child = forever.start([language_map[service.split('.')[1]], service], {
            max: 10000,
            silent: false
        });
        forever.startServer(child);
        services[service] = child;
        forever.cli.list();
    }
}

forever

A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever)

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis