# The views and conclusions contained in the software and documentation are
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of GRNET S.A.
-
+#
#
# Init script for Aquarium
#
# AQUARIUM_HOME Location of the top level Aquarium dir
# (default: .)
#----------------------
-
+#
#set -x
+#
+### BEGIN INIT INFO
+# Provides: aquarium
+# Required-Start: $all
+# Required-Stop: $all
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
# resolve links - $0 may be a softlink
PRG="$0"
fi
echo "Starting Aquarium"
+ echo >> $AQUARIUM_LOGFILE
CLASSPATH=$JBOOT_JAR
echo "Using AQUARIUM_MAIN_CLASS=$AQUARIUM_MAIN_CLASS"
echo "Using AQUARIUM_PROP=$AQUARIUM_PROP"
echo "Using JAVA_OPTS=$JAVA_OPTS"
- echo "nohup java $JAVA_OPTS -cp $CLASSPATH $AQUARIUM_PROP $JBOOT_MAIN_CLASS -lib $AQUARIUM_LIB $AQUARIUM_MAIN_CLASS > $AQUARIUM_LOGFILE"
+ echo "nohup java $JAVA_OPTS -cp $CLASSPATH $AQUARIUM_PROP $JBOOT_MAIN_CLASS -lib $AQUARIUM_LIB $AQUARIUM_MAIN_CLASS >> $AQUARIUM_LOGFILE"
- nohup java $JAVA_OPTS -cp $CLASSPATH $AQUARIUM_PROP $JBOOT_MAIN_CLASS -lib $AQUARIUM_LIB $AQUARIUM_MAIN_CLASS > $AQUARIUM_LOGFILE 2>&1 &
- echo $! > $PID_FILE
- echo "PID="`cat $PID_FILE`
+ nohup java $JAVA_OPTS -cp $CLASSPATH $AQUARIUM_PROP $JBOOT_MAIN_CLASS -lib $AQUARIUM_LIB $AQUARIUM_MAIN_CLASS >> $AQUARIUM_LOGFILE 2>&1 &
+ PID=$!
+ echo $PID > $PID_FILE
+ echo "PID=$PID"
}
# Stops the application