Commit b9dff734489e7608f6caf543997316180c054e2e

Authored by kevin_fourie
1 parent cb11784d

KTS-2525

"Create windows service to wrap around scheduler"
Updated. Added taskrunner.bat and modified service scripts.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7456 c91229c3-7414-0410-bfa2-8a42b809f60b
bin/win32/installScheduler.php
1 1 <?php
2 2  
3   -$scriptPath = realpath(dirname(__FILE__) . '/schedulerService.php');
  3 +$scriptPath = realpath(dirname(__FILE__) . '/taskrunner.bat');
4 4  
5   -// Setup php binary path
6   -$phpPath = realpath('../../php/php.exe');
7   -if (!is_file($phpPath))
8   -{
9   - die('Cannot find php.exe');
10   -}
11   -
12 5 win32_create_service(array(
13 6 'service' => 'ktscheduler',
14 7 'display' => 'ktdmsScheduler',
15   - 'params' => $scriptPath,
16   - 'path' => $phpPath
  8 + 'path' => $scriptPath
17 9 ));
18 10  
19 11 ?>
... ...
bin/win32/schedulerServiceStatus.php
... ... @@ -2,4 +2,4 @@
2 2  
3 3 var_dump(win32_query_service_status('ktscheduler'));
4 4  
5   -?>
6 5 \ No newline at end of file
  6 +?>
... ...
bin/win32/taskrunner.bat 0 → 100644
  1 +@echo off
  2 +"@@BITROCK_INSTALLDIR@@\php\php.exe" "@@BITROCK_INSTALLDIR@@\knowledgeTree\bin\win32\schedulerService.php"
  3 +
... ...