Permalink
Browse files

stop script

  • Loading branch information...
1 parent 9192f65 commit a1f7d48e6bdd8dcfc3fb1454c4841d6443e79e4f joshwand committed with Feb 9, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 cfbot-stop.sh
View
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# run as cfbot-stop.sh BOT_ENV_NAME
+for i in $(ps ajx | awk "/[b]ot ${1}/ {print \$2;}")
+do
+ echo "killing pid $i"
+ kill -9 $i
+done

0 comments on commit a1f7d48

Please sign in to comment.