Commit b9dff734489e7608f6caf543997316180c054e2e
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
Showing
3 changed files
with
6 additions
and
11 deletions
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
bin/win32/taskrunner.bat
0 → 100644