]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/webapp.init
Move everything to the root of the repository.
[people/shoehn/ipfire.org.git] / www / webapp.init
diff --git a/www/webapp.init b/www/webapp.init
deleted file mode 100755 (executable)
index bf509ab..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-HOMEDIR=$(dirname $(readlink $0))
-LOGFILE=/var/log/webapp/error.log
-
-case "$1" in
-       start)
-               if ps ax | grep -v grep | grep webapp.py > /dev/null
-               then
-               echo "webapp is allready running..."
-       else
-                       echo "Starting webapp..."
-                       cd ${HOMEDIR} && ./webapp.py >>${LOGFILE} 2>&1 &
-               fi
-               ;;
-
-       stop)
-               if ps ax | grep -v grep | grep webapp.py > /dev/null
-               then
-                       echo "Stopping webapp..."
-                       killall webapp.py &> /dev/null
-       else
-                       echo "webapp is not running..."
-               fi
-               ;;
-
-       restart)
-               $0 stop
-               sleep 2
-               $0 start
-               ;;
-
-       check)
-               if ps ax | grep -v grep | grep webapp.py > /dev/null
-                       then
-               :
-#              echo "webapp is running..."
-               else
-                       echo "webapp is not running!" 
-                       $0 start
-               fi
-               ;;
-               
-               *)
-               echo "usage: webapp [ start | stop | restart | check ]"
-               ;;
-               
-esac