0.0.5 • Published 7 years ago

easy-stop v0.0.5

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

easy-stop

easy-stop is a quick util of control node server start / stop. It can helps you start singleton web server by one folder.

Start Server

const easyStop = require('easy-stop');
easyStop.start().then(function () {
	// Start your server like express...
});

start will check current running instance. Return Promise - onSuccess if no instance is running.

Stop Server

by code

const easyStop = require('easy-stop');
easyStop.stop();

stop will close the running instance.

by cli

easy-stop stop

Arguments

start(pidDirPath = current folder, pidFileName = 'process.pid')

stop(pidDirPath = current folder, pidFileName = 'process.pid')

restart(pidDirPath = current folder, pidFileName = 'process.pid')

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago