Commit 81d5646f71133997f7fab062650f94a11562dc54

Authored by Jarrett Jordaan
2 parents 4fa01306 3c2df7b3

Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge

Showing 1 changed file with 5 additions and 0 deletions
dmsctl.sh
... ... @@ -145,6 +145,7 @@ start_soffice() {
145 145 if [ $RUNNING -eq 1 ]; then
146 146 echo "$0 $ARG: openoffice (pid $SOFFICE_PID) already running"
147 147 else
  148 + if [ -x $SOFFICEBIN ]; then
148 149 nohup $SOFFICE &> $INSTALL_PATH/var/log/dmsctl.log &
149 150 if [ $? -eq 0 ]; then
150 151 echo "$0 $ARG: openoffice started at port $SOFFICE_PORT"
... ... @@ -154,6 +155,10 @@ start_soffice() {
154 155 echo "$0 $ARG: openoffice could not be started"
155 156 ERROR=3
156 157 fi
  158 + else
  159 + echo "$0 $ARG: path to openoffice binary ($SOFFICEBIN) could not be found"
  160 + ERROR=3
  161 + fi
157 162 fi
158 163 }
159 164  
... ...