supervisor
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -12,2 +12,3 @@ var util = require("util"); | ||
var forceWatchFlag = false; | ||
var instantKillFlag = false; | ||
var interactive = true; | ||
@@ -53,2 +54,4 @@ var log = console.log; | ||
forceWatchFlag = true; | ||
} else if (arg === "--instant-kill" || arg === "-k") { | ||
instantKillFlag = true; | ||
} else if (arg === "--") { | ||
@@ -138,3 +141,3 @@ program = args; | ||
if (child) { | ||
log("Sending "+signal+" to child..."); | ||
log("Received "+signal+", killing child..."); | ||
child.kill(signal); | ||
@@ -284,2 +287,6 @@ } | ||
("") | ||
(" -k|--instant-kill") | ||
(" Dissable interactive capacity") | ||
(" With this option, supervisor won't listen to stdin") | ||
("") | ||
(" --force-watch") | ||
@@ -348,4 +355,9 @@ (" Use fs.watch instead of fs.watchFile.") | ||
if (child) { | ||
log("crashing child"); | ||
process.kill(child.pid); | ||
if (instantKillFlag) { | ||
log("crashing child with SIGKILL"); | ||
process.kill(child.pid, "SIGKILL"); | ||
} else { | ||
log("crashing child"); | ||
process.kill(child.pid); | ||
} | ||
} else { | ||
@@ -352,0 +364,0 @@ log("restarting child"); |
@@ -1,47 +0,50 @@ | ||
{ "name" : "supervisor" | ||
, "version" : "0.8.0" | ||
, "description" : "A supervisor program for running nodejs programs" | ||
, "author" : "Isaac Z. Schlueter <i@izs.me>" | ||
, "contributors" : | ||
[ "Todd Branchflower <toddbran@stanford.edu>" | ||
, "Giannis Dzegoutanis <erasmospunk@gmail.com>" | ||
, "Brian Ehmann <behmann@gmail.com>" | ||
, "Corey Jewett <cj@syntheticplayground.com>" | ||
, "Taka Kojima <taka.kojima@ff0000.com>" | ||
, "Aneil Mallavarapu <aneil@blipboard.com>" | ||
, "Doug McCall <dhm116@psu.edu>" | ||
, "Mathieu M-Gosselin <mathieumg@gmail.com>" | ||
, "David Murdoch <hello@davidmurdoch.com>" | ||
, "mx1700 <mx1700@gmail.com>" | ||
, "Michiel ter Reehorst <jm.ter.reehorst@jamiter.com>" | ||
, "Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>" | ||
, "John Roberts <jroberts@logitech.com>" | ||
, "Scott Sanders <scott@stonecobra.com>" | ||
, "Thomas Schaaf <schaaf@komola.de>" | ||
, "Fernando H. Silva <ferhensil@gmail.com>" | ||
, "Kei Son <heyacct@gmail.com>" | ||
, "David Taylor <david@zensatellite.com>" | ||
, "Antonio Touriño <atourino@gmail.com>" | ||
, "Oliver Wong <oliver@owiber.com>" | ||
, "Di Wu <dw323@cornell.edu>" | ||
, "Jesse Yang <jyyjcc@gmail.com>" | ||
, "Ian Young <ian.greenleaf@gmail.com>" | ||
, "jazzzz <jazzzz@gmail.com>" | ||
, "philpill <github@philpill.net>" | ||
, "rma4ok <rma4ok@gmail.com>" | ||
, "Petru Isfan <petru.isfan@gmail.com>" | ||
] | ||
, "repository": | ||
{ "type": "git" | ||
, "url": "git://github.com/petruisfan/node-supervisor.git" | ||
} | ||
, "bugs": "https://github.com/petruisfan/node-supervisor/issues" | ||
, "homepage": "https://github.com/petruisfan/node-supervisor/" | ||
, "main" : "lib/supervisor.js" | ||
, "bin" : | ||
{ "node-supervisor" : "lib/cli-wrapper.js" | ||
, "supervisor" : "lib/cli-wrapper.js" | ||
} | ||
, "engines" : { "node" : ">=0.6.0" } | ||
, "preferGlobal" : true | ||
{ | ||
"name": "supervisor", | ||
"version": "0.9.0", | ||
"description": "A supervisor program for running nodejs programs", | ||
"author": "Isaac Z. Schlueter <i@izs.me>", | ||
"contributors": [ | ||
"Todd Branchflower <toddbran@stanford.edu>", | ||
"Giannis Dzegoutanis <erasmospunk@gmail.com>", | ||
"Brian Ehmann <behmann@gmail.com>", | ||
"Corey Jewett <cj@syntheticplayground.com>", | ||
"Taka Kojima <taka.kojima@ff0000.com>", | ||
"Aneil Mallavarapu <aneil@blipboard.com>", | ||
"Doug McCall <dhm116@psu.edu>", | ||
"Mathieu M-Gosselin <mathieumg@gmail.com>", | ||
"David Murdoch <hello@davidmurdoch.com>", | ||
"mx1700 <mx1700@gmail.com>", | ||
"Michiel ter Reehorst <jm.ter.reehorst@jamiter.com>", | ||
"Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>", | ||
"John Roberts <jroberts@logitech.com>", | ||
"Scott Sanders <scott@stonecobra.com>", | ||
"Thomas Schaaf <schaaf@komola.de>", | ||
"Fernando H. Silva <ferhensil@gmail.com>", | ||
"Kei Son <heyacct@gmail.com>", | ||
"David Taylor <david@zensatellite.com>", | ||
"Antonio Touriño <atourino@gmail.com>", | ||
"Oliver Wong <oliver@owiber.com>", | ||
"Di Wu <dw323@cornell.edu>", | ||
"Jesse Yang <jyyjcc@gmail.com>", | ||
"Ian Young <ian.greenleaf@gmail.com>", | ||
"jazzzz <jazzzz@gmail.com>", | ||
"philpill <github@philpill.net>", | ||
"rma4ok <rma4ok@gmail.com>", | ||
"Petru Isfan <petru.isfan@gmail.com>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/petruisfan/node-supervisor.git" | ||
}, | ||
"bugs": "https://github.com/petruisfan/node-supervisor/issues", | ||
"homepage": "https://github.com/petruisfan/node-supervisor/", | ||
"main": "lib/supervisor.js", | ||
"bin": { | ||
"node-supervisor": "lib/cli-wrapper.js", | ||
"supervisor": "lib/cli-wrapper.js" | ||
}, | ||
"engines": { | ||
"node": ">=0.6.0" | ||
}, | ||
"preferGlobal": true | ||
} |
@@ -70,2 +70,6 @@ # node-supervisor | ||
This may be useful if you see a high cpu load on a windows machine. | ||
--instant-kill | ||
Instantly kills the server process, instead of gracefully shutting down the server. | ||
This can be useful when the node app has events attached to SIGTERM or SIGINT so as to do a graceful shutdown before the process exits. | ||
@@ -72,0 +76,0 @@ -h|--help|-? |
20701
447
108