Commit d0d5f392e0a0d8a599f21fec1123fc71d61bbcd6

Authored by Megan Watson
1 parent 242c730d

KTS-3091

"The name of the open office service needs to be changed in the script to check if its running"
Fixed. Changed the name and the paths to match the new stack.

Committed by: Megan Watson
Reviewed by: Jonathan Byrne



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8164 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 6 additions and 7 deletions
bin/checkopenoffice.php
@@ -42,24 +42,23 @@ require_once('../config/dmsDefaults.php'); @@ -42,24 +42,23 @@ require_once('../config/dmsDefaults.php');
42 // Check if open office is running 42 // Check if open office is running
43 $sCheckOO = SearchHelper::checkOpenOfficeAvailablity(); 43 $sCheckOO = SearchHelper::checkOpenOfficeAvailablity();
44 44
45 -  
46 // If it is running - exit, we don't need to do anything otherwise start it 45 // If it is running - exit, we don't need to do anything otherwise start it
47 if(!empty($sCheckOO)){ 46 if(!empty($sCheckOO)){
48 - 47 +
49 $default->log->debug('Check Open Office Task: Open office service is not running... trying to start it.'); 48 $default->log->debug('Check Open Office Task: Open office service is not running... trying to start it.');
50 - 49 +
51 if(OS_WINDOWS){ 50 if(OS_WINDOWS){
52 - 51 +
53 // Check the path first 52 // Check the path first
54 - $sPath = realpath('../../winserv.exe'); 53 + $sPath = realpath('../../bin/winserv.exe');
55 54
56 if(file_exists($sPath)){ 55 if(file_exists($sPath)){
57 - $sCmd = "\"$sPath\" start kt_openoffice"; 56 + $sCmd = "\"$sPath\" start ktopenoffice";
58 KTUtil::pexec($sCmd); 57 KTUtil::pexec($sCmd);
59 exit; 58 exit;
60 } 59 }
61 // If that doesn't work, check for the all start 60 // If that doesn't work, check for the all start
62 - $sPath = realpath('../../bin/allctl.bat'); 61 + $sPath = realpath('../../bin/dmsctl.bat');
63 if(file_exists($sPath)){ 62 if(file_exists($sPath)){
64 $sCmd = "\"$sPath\" start"; 63 $sCmd = "\"$sPath\" start";
65 KTUtil::pexec($sCmd); 64 KTUtil::pexec($sCmd);