/
Stop Service

Stop Service

Introduction


The Composer provides the ability to stop the deployed service.

You can invoke this functionality by calling stopService and pass the service name to it as a parameter.

Usage


Stop Daemon Example
//assuming that the service name is "myService" and provided in config.js

//deploy the service
composer.deploy(__dirname + "/.config.js", function (error) {
	
	//call stop service
	composer.stopService("myService", function(error){
		if(error){
	   		console.log(error);   
		}
		else{
			console.log("service stopped");
		}
	});
});

Related content

Stop Daemon
Stop Daemon
More like this
Get Daemon
Get Daemon
More like this
02 - Daemon
02 - Daemon
More like this
Daemon Config File
Daemon Config File
More like this
03 Features
03 Features
More like this
Daemon Index File
Daemon Index File
More like this