Source

Raspberry Pi GPIO Web Control / start.sh

Full commit
Sebastian Bub 5cd19cf 

Sebastian Bub da90dd3 















Sebastian Bub 5cd19cf 


Sebastian Bub da90dd3 


Sebastian Bub de5a980 
Sebastian Bub 5cd19cf 
Sebastian Bub f09d7ae 
Sebastian Bub da90dd3 
Sebastian Bub 5cd19cf 
Sebastian Bub da90dd3 
Sebastian Bub 5cd19cf 
Sebastian Bub f09d7ae 
Sebastian Bub 5cd19cf 



Sebastian Bub da90dd3 
Sebastian Bub 5cd19cf 
#!/bin/bash

# Copyright 2012 der-bub.de
# http://www.der-bub.de
# Author: Sebastian Bub (sebastian@der-bub.de)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

DIR=`dirname "$0"`
cd "$DIR"

WINSTONE_JAR=./winstone-0.9.10.jar
WINSTONE_LOG=logs/winstone.log

WARFILE=target/raspberry-pi-gpio-web-control-1.0-SNAPSHOT.war
GPIO_CONFIG=gpio.conf
CRON_CONFIG=cron.conf
RPI_GPIO_LOG=file:`pwd`/log4j.properties

java -Dlog4j.configuration=$RPI_GPIO_LOG \
          -Dgpio.configuration=$GPIO_CONFIG \
          -Dcron.configuration=$CRON_CONFIG \
		  -jar $WINSTONE_JAR \
		  --ajp13Port=-1 \
		  --warfile=$WARFILE \
		  --debug=6 \
		  --logfile=$WINSTONE_LOG
cd -