amino-drone
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -21,3 +21,8 @@ var inherits = require('util').inherits | ||
this.emit('error', new Error('spawned command ran for less than 10 seconds - respawn aborted')); | ||
this.emit('exit'); | ||
// Don't emit 'exit' when respawn is requested (as opposed to triggered on | ||
// process exit) because the process has not exited. If we emit, the | ||
// listener in ../index.js will delete the reference to this process | ||
// and we'll never be able to stop it. Even if we manually kill the process, | ||
// it will respawn! | ||
arguments.length && this.emit('exit'); | ||
return; | ||
@@ -79,3 +84,3 @@ } | ||
respawns: this.respawns, | ||
lastRespawn: this.lastRespawn, | ||
lastRespawn: this.lastRespawn && this.lastRespawn.getTime(), | ||
sha1sum: this.sha1sum, | ||
@@ -82,0 +87,0 @@ commit: this.commit |
{ | ||
"name": "amino-drone", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "drone daemon to receive deployments from amino-deploy", | ||
@@ -5,0 +5,0 @@ "bin": "./bin/amino-drone", |
16431
401