]> matita.cs.unibo.it Git - helm.git/commitdiff
Proof-checker ported to the mowgli version.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 25 Oct 2002 15:47:36 +0000 (15:47 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 25 Oct 2002 15:47:36 +0000 (15:47 +0000)
helm/scripts/init.d/etc_default_helm
helm/scripts/init.d/helm-bootmisc.sh
helm/scripts/init.d/helm-proof-checker_mowgli [new file with mode: 0755]
helm/scripts/init.d/helm-tomcat

index 53696cdedbdf6a4b7a95f7b71498ac6c6d4b696c..4d06f941f0094de2e20e87e14f155d1353865270 100644 (file)
@@ -17,9 +17,10 @@ UWOBO_INIT_SCRIPT="/projects/helm/shared/scripts/init.d/loadPredefinedStylesheet
 
   # http getter cache dirs that need to be created at boot time
 HTTP_GETTER_CACHE_DIRS="
-  /ramfs/http_getter
-  /ramfs/http_getter/library
-  /ramfs/http_getter/rdf_library
+  /projects/helm/shared/cache/library
+  /projects/helm/shared/cache/library/http_getter
+  /projects/helm/shared/cache/rdf_library
+  /projects/helm/shared/cache/rdf_library/http_getter
 "
 
   # user which will own the daemons and the cache directories
index d58c449ac5549986c5178b36ba66341890095b8d..79e3b69a78c131ef84545f94f07e71d7fd0e1866 100755 (executable)
@@ -10,8 +10,10 @@ fi
 
 # create http_getter cache dirs
 for d in $HTTP_GETTER_CACHE_DIRS; do
-  mkdir -m 2755 $d
-  OWNER=`echo -n $OWNER | sed -e 's/:/./'`
-  chown $OWNER $d
+  if ! [ -d $d ]; then
+    mkdir -m 2775 $d
+    OWNER=`echo -n $OWNER | sed -e 's/:/./'`
+    chown $OWNER $d
+  fi
 done
 
diff --git a/helm/scripts/init.d/helm-proof-checker_mowgli b/helm/scripts/init.d/helm-proof-checker_mowgli
new file mode 100755 (executable)
index 0000000..97874eb
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+# init.d script for HELM proof checker
+#
+# by --Zack <zack@cs.unibo.it>
+# Created: Wed,  9 Oct 2002 11:12:01 +0200
+# Last-Modified: Wed,  9 Oct 2002 11:12:01 +0200
+
+DAEMON=/projects/helm/proofChecker_mowgli/proofChecker.pl
+USAGE="Usage: /etc/init.d/helm-proof-checker { start | stop | restart }"
+
+ENVSCRIPT=""
+if [ -f /etc/default/helm_mowgli ]; then
+  . /etc/default/helm_mowgli
+fi
+if ! [ -f "$ENVSCRIPT" ]; then
+  echo "Can't find environment script '$ENVSCRIPT'"
+  exit 1
+fi
+. $ENVSCRIPT &> /dev/null
+
+NAME=`basename $DAEMON`
+PIDFILE=/projects/helm/run/$NAME.pid
+
+do_start () {
+  echo "Starting $DAEMON ..."
+  start-stop-daemon \
+    --start --background --pidfile $PIDFILE --make-pidfile \
+    --chuid $OWNER --exec $DAEMON
+}
+
+do_stop () {
+  echo "Stopping $DAEMON ..."
+  start-stop-daemon --stop --pidfile $PIDFILE && \
+  (if [ -f $PIDFILE ]; then rm -f $PIDFILE; else true; fi)
+}
+
+case "$1" in
+
+  start)
+    do_start
+    ;;
+
+  stop)
+    do_stop
+    ;;
+
+  restart)
+    do_stop
+    do_start
+    ;;
+
+  *)
+    echo "$USAGE" >&2
+    exit 1
+    ;;
+
+esac
+
index 1c8d3d94e9db416377b69e8ad95b8e2b31e67cf1..166ab31b16229cc8f79ec4b5f33d69655499f38d 100755 (executable)
@@ -21,7 +21,9 @@ fi
 case "$1" in
 
   start)
+    echo -n "Loading UWOBO stylesheets (helm) ... "
     $UWOBO_INIT_SCRIPT > /dev/null
+    echo "done!"
     ;;
 
   stop)