diff --git a/lib/daemon.js b/lib/daemon.js index 87ab0e8..a282785 100644 --- a/lib/daemon.js +++ b/lib/daemon.js @@ -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, @@ -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; }