From d0d5f392e0a0d8a599f21fec1123fc71d61bbcd6 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Wed, 27 Feb 2008 10:07:18 +0000 Subject: [PATCH] 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. --- bin/checkopenoffice.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bin/checkopenoffice.php b/bin/checkopenoffice.php index c3e6ba7..95dad29 100644 --- a/bin/checkopenoffice.php +++ b/bin/checkopenoffice.php @@ -42,24 +42,23 @@ require_once('../config/dmsDefaults.php'); // Check if open office is running $sCheckOO = SearchHelper::checkOpenOfficeAvailablity(); - // If it is running - exit, we don't need to do anything otherwise start it if(!empty($sCheckOO)){ - + $default->log->debug('Check Open Office Task: Open office service is not running... trying to start it.'); - + if(OS_WINDOWS){ - + // Check the path first - $sPath = realpath('../../winserv.exe'); + $sPath = realpath('../../bin/winserv.exe'); if(file_exists($sPath)){ - $sCmd = "\"$sPath\" start kt_openoffice"; + $sCmd = "\"$sPath\" start ktopenoffice"; KTUtil::pexec($sCmd); exit; } // If that doesn't work, check for the all start - $sPath = realpath('../../bin/allctl.bat'); + $sPath = realpath('../../bin/dmsctl.bat'); if(file_exists($sPath)){ $sCmd = "\"$sPath\" start"; KTUtil::pexec($sCmd); -- libgit2 0.21.4