projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some improvements. Testing variants: Baroque has some issues
[xogo.git]
/
stop.sh
diff --git
a/stop.sh
b/stop.sh
index
8d54dcc
..
dee6895
100755
(executable)
--- a/
stop.sh
+++ b/
stop.sh
@@
-1,5
+1,6
@@
#!/bin/sh
# https://stackoverflow.com/questions/13939038/how-do-you-run-a-command-for-each-line-of-a-file
#!/bin/sh
# https://stackoverflow.com/questions/13939038/how-do-you-run-a-command-for-each-line-of-a-file
-source ./.pid
-kill -9 -`ps p $NODE_PID -o pgid | grep "[0-9]\+" | tr -d " "`
+while read pid; do
+ kill -9 -`ps p $pid -o pgid | grep "[0-9]\+" | tr -d " "`
+done <.pid