+4
-2
@@ -49,3 +49,3 @@ #!/bin/bash | ||
| if [ "$npm_package_scripts_prestart" != "" ]; then | ||
| print_header restart "$npm_package_scripts_prestart" | ||
| print_header prestart "$npm_package_scripts_prestart" | ||
| sh -c "$npm_package_scripts_prestart" | ||
@@ -58,3 +58,3 @@ return $? | ||
| if [ "$npm_package_scripts_poststart" != "" ]; then | ||
| print_header restart "$npm_package_scripts_poststart" | ||
| print_header poststart "$npm_package_scripts_poststart" | ||
| sh -c "$npm_package_scripts_poststart" | ||
@@ -75,2 +75,4 @@ return $? | ||
| # if we are pid=1 we need to support to work with graceful restarts | ||
| # this is mostly an docker issue | ||
| if [ "$$" = "1" ]; then | ||
@@ -77,0 +79,0 @@ trap on_proxy_exit SIGTERM |
+1
-1
| { | ||
| "name": "npm-start", | ||
| "version": "1.2.1", | ||
| "version": "1.2.2", | ||
| "description": "'npm start' written in bash that propagates kill to subprocesses", | ||
@@ -5,0 +5,0 @@ "repository": { |
3397
3.16%