# 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
# 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
--- /dev/null
+#!/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
+