oops, this is a bash script not python
authorTony Mack <tmack@cs.princeton.edu>
Fri, 24 Apr 2009 16:13:12 +0000 (16:13 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 24 Apr 2009 16:13:12 +0000 (16:13 +0000)
geni/restart-plc.sh [new file with mode: 0755]

diff --git a/geni/restart-plc.sh b/geni/restart-plc.sh
new file mode 100755 (executable)
index 0000000..b33a381
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+for i in `ps aux |grep "python plc.py" | head -n3 |awk '{print $2}'` ; do
+        echo "killing $i"
+        kill $i
+done
+
+echo "Start Registry"
+python plc.py -r -d
+echo "Start Aggregate Manager"
+python plc.py -a -d
+echo "Start Slice Manager"
+python plc.py -s -d