Permalink
Browse files

quick and dirty restarter

  • Loading branch information...
1 parent ab42439 commit 898394f11ccd9dc8415e7500b5091cf82e5ffbbe Alexis Sukrieh committed Mar 8, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 restart.sh
View
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+for pid in `ps fax | grep perldancer.pl | grep -v grep | awk '{print $1}'`
+do
+ echo "killing $pid..."
+ kill $pid
+done
+
+./perldancer.pl --daemon --port 5001 --environment production
+./perldancer.pl --daemon --port 5002 --environment production
+./perldancer.pl --daemon --port 5003 --environment production

0 comments on commit 898394f

Please sign in to comment.