Commit d0d5f392e0a0d8a599f21fec1123fc71d61bbcd6
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 | 42 | // Check if open office is running |
| 43 | 43 | $sCheckOO = SearchHelper::checkOpenOfficeAvailablity(); |
| 44 | 44 | |
| 45 | - | |
| 46 | 45 | // If it is running - exit, we don't need to do anything otherwise start it |
| 47 | 46 | if(!empty($sCheckOO)){ |
| 48 | - | |
| 47 | + | |
| 49 | 48 | $default->log->debug('Check Open Office Task: Open office service is not running... trying to start it.'); |
| 50 | - | |
| 49 | + | |
| 51 | 50 | if(OS_WINDOWS){ |
| 52 | - | |
| 51 | + | |
| 53 | 52 | // Check the path first |
| 54 | - $sPath = realpath('../../winserv.exe'); | |
| 53 | + $sPath = realpath('../../bin/winserv.exe'); | |
| 55 | 54 | |
| 56 | 55 | if(file_exists($sPath)){ |
| 57 | - $sCmd = "\"$sPath\" start kt_openoffice"; | |
| 56 | + $sCmd = "\"$sPath\" start ktopenoffice"; | |
| 58 | 57 | KTUtil::pexec($sCmd); |
| 59 | 58 | exit; |
| 60 | 59 | } |
| 61 | 60 | // If that doesn't work, check for the all start |
| 62 | - $sPath = realpath('../../bin/allctl.bat'); | |
| 61 | + $sPath = realpath('../../bin/dmsctl.bat'); | |
| 63 | 62 | if(file_exists($sPath)){ |
| 64 | 63 | $sCmd = "\"$sPath\" start"; |
| 65 | 64 | KTUtil::pexec($sCmd); | ... | ... |