--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOlat".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOlat - infinite learning - http://www.openolat.org
---
You received this message because you are subscribed to the Google Groups "OpenOlat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openolat/3f4b8bcf-ec03-457f-830e-688aac125e69%40googlegroups.com.
#!/bin/bash
export CATALINA_BASE=/home/openolat
export CATALINA_HOME=/home/openolat/tomcat
export JRE_HOME=/home/openolat/jre
export CATALINA_PID="$CATALINA_BASE/bin/catalina.pid"
USER=openolat
START=$CATALINA_HOME/bin/startup.sh
STOP=$CATALINA_HOME/bin/shutdown.sh
ERROR=0
case "$1" in
start)
echo $"Starting Tomcat"
start-stop-daemon --start --chuid $USER --pidfile "$CATALINA_PID" --start --exec "$START"
;;
stop)
echo $"Stopping Tomcat"
start-stop-daemon --start --chuid $USER --pidfile "$CATALINA_PID" --start --exec "$STOP"
;;
restart)
DAEMON=$CATALINA_HOME/bin/shutdown.sh
start-stop-daemon --start --chuid $USER --pidfile "$CATALINA_PID" --start --exec "$START"
start-stop-daemon --start --chuid $USER --pidfile "$CATALINA_PID" --start --exec "$STOP"
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
;;
esacexit $ERROR
chmod 755 /etc/init.d/openolat
update-rc.d openolat defaults
service openolat startservice openolat stop
#!/bin/bash
### BEGIN INIT INFO
# Provides: openolat
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts openolat server
# Description: starts openolat
### END INIT INFO