Make it easy to kill fcgi processes.
authorEric Price <ecprice@mit.edu>
Tue, 3 Jun 2008 06:11:03 +0000 (02:11 -0400)
committerEric Price <ecprice@mit.edu>
Tue, 3 Jun 2008 06:11:03 +0000 (02:11 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=583

code/Makefile
code/kill.cgi [new file with mode: 0755]

index 582293f..8ff936c 100644 (file)
@@ -1,6 +1,11 @@
 DIRS = templates
 
-all:
+all: kill compile
+
+kill:
+       wget http://xvm.mit.edu/kill.cgi -O /dev/null -nv
+
+compile:
        for dir in $(DIRS); do \
                (cd $$dir; $(MAKE) all); \
        done
diff --git a/code/kill.cgi b/code/kill.cgi
new file mode 100755 (executable)
index 0000000..f297d32
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+pkill main.fcgi
+echo "Content-Type: text/plain"
+echo
+echo "Killed."