Skip to content

Commit

Permalink
Merge pull request #113 from liri/patch-1
Browse files Browse the repository at this point in the history
Update daemon.js
  • Loading branch information
coreybutler committed Mar 24, 2016
2 parents 7478cf1 + 24551a0 commit be94329
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ var daemon = function(config){
* @event uninstall
* Fired when the uninstall is complete.
*/
/**
* @event alreadyuninstalled
* Fired if the script is unknown as a service.
*/
uninstall: {
enumerable: true,
writable: false,
Expand All @@ -458,6 +462,7 @@ var daemon = function(config){

if (!this.exists){
console.log('Uninstall was skipped because process does not exist or could not be found.');
this.emit('alreadyuninstalled');
return;
}

Expand Down

0 comments on commit be94329

Please sign in to comment.