1234567891011121314151617181920 |
- #!/bin/bash
- if [ ! -z ${LOGPATH} ]
- then
- ln -s ${LOGPATH} /opt/analis/log
- fi
- echo "Starting AnalisServer.exe $@"
- echo "This file used to shedule healthchecks" > /opt/analis/checkfile.status
- touch /opt/analis/log/fatal.log
- ln -s /opt/analis/log/fatal.log /opt/analis/fatal.log
- tail -n0 -f /opt/analis/log/fatal.log | while read fread; do echo "[fatal.log]: ${fread}"; done &
- # See Redmine 111631
- if [ ! -z ${DEBUG} ] && [ ${DEBUG} == "true" ]
- then
- touch /opt/analis/debug.log
- tail -f /opt/analis/debug.log 2> /dev/null | while read fread; do echo "[debug.log]: ${fread}"; :> /root/.wine/drive_c/services/analis/debug.log; done &
- exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/analis/AnalisServer.exe" "/app" "/debug" "debugfile=/opt/analis/debug.log" "$@"
- else
- exec "/usr/bin/xvfb-run" "-a" "wine" "/opt/analis/AnalisServer.exe" "/app" "$@"
- fi
|