Changes between Version 7 and Version 8 of OpenSpecimen HowTo Install


Ignore:
Timestamp:
01/09/16 13:39:25 (9 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenSpecimen HowTo Install

    v7 v8  
    5757These later steps are documented in the script {{{/local/os_v20/run_osv20.sh}}}
    5858
     597. Create the script `run_open_specimen.sh`:
     60
     61{{{
     62#!/bin/bash
     63
     64unset JAVA_TOOL_OPTIONS
     65export JAVA_ROOT=/usr/lib64/jvm/java
     66export JDK_HOME=/usr/lib64/jvm/java
     67export SDK_HOME=/usr/lib64/jvm/java
     68export JAVA_BINDIR=/usr/lib64/jvm/java/bin
     69export JRE_HOME=/usr/lib64/jvm/java/jre
     70JAVA_HOME=/opt/java
     71JRE_HOME=/opt/java/jre
     72OPEN_SPECIMEN_DIR=/local/{Open Specimen Directory}/app
     73
     74export JAVA_TOOL_OPTIONS=-XX:CompressedClassSpaceSize=10m
     75export JAVA_OPTS="-Xmx2G -XX:-UseCompressedClassPointers"
     76
     77$OPEN_SPECIMEN_DIR/bin/catalina.sh start >$OPEN_SPECIMEN_DIR/logs/tomcat-start.log  2>$OPEN_SPECIMEN_DIR/logs/tomcat-start.err &
     78}}}
     79
     808. Create the script `stop_open_specimen.sh`:
     81
     82{{{
     83#!/bin/bash
     84
     85unset JAVA_TOOL_OPTIONS
     86export JAVA_ROOT=/usr/lib64/jvm/java
     87export JDK_HOME=/usr/lib64/jvm/java
     88export SDK_HOME=/usr/lib64/jvm/java
     89export JAVA_BINDIR=/usr/lib64/jvm/java/bin
     90export JRE_HOME=/usr/lib64/jvm/java/jre
     91JAVA_HOME=/opt/java
     92JRE_HOME=/opt/java/jre
     93OPEN_SPECIMEN_DIR=/local/openSpecimen_v2_4/app
     94
     95export JAVA_TOOL_OPTIONS=-XX:CompressedClassSpaceSize=10m
     96export JAVA_OPTS="-Xmx2G -XX:-UseCompressedClassPointers"
     97
     98$OPEN_SPECIMEN_DIR/bin/catalina.sh stop
     99}}}
     100
     1019. Give `www-run` account permission to run the scripts:
     102
     103{{{
     104setfacl -m u:wwwrun:rx /local/{Open Specimen Directory}/run_open_specimen.sh
     105setfacl -m u:wwwrun:rx /local/{Open Specimen Directory}/stop_open_specimen.sh
     106}}}
     107
     10810. Give `www-run` permission to write to the logs and work directories:
     109
     110{{{
     111setfacl -R -m u:wwwrun:rwx /local/{Open Specimen Directory}/logs/
     112setfacl -R -m u:wwwrun:rwx /local/{Open Specimen Directory}/work/
     113}}}
     114
     11511. Give `www-run` permission to run Tomcat:
     116{{{
     117setfacl -m u:wwwrun:rx /local/{Open Specimen Directory}/app/bin/catalina.sh
     118}}}
     119
    59120[[BackLinks]]