Commit 110abadb40060a3d79edc24b9ecb4e72c75574f4
1 parent
3e7f7efb
KTS-2525
"Create windows service to wrap around scheduler" Implemented. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7434 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
4 changed files
with
43 additions
and
0 deletions
bin/win32/installScheduler.php
0 → 100644
bin/win32/schedulerService.php
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | + | |
| 4 | +$dir = realpath(dirname(__FILE__) . '/..'); | |
| 5 | +chdir($dir); | |
| 6 | + | |
| 7 | +$phpPath = realpath('../../../php/php.exe'); | |
| 8 | +if (!is_file($phpPath)) | |
| 9 | +{ | |
| 10 | + die('Cannot find php.exe'); | |
| 11 | +} | |
| 12 | + | |
| 13 | + | |
| 14 | + win32_start_service_ctrl_dispatcher('ktscheduler'); | |
| 15 | + | |
| 16 | + while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message()) | |
| 17 | + { | |
| 18 | + system("$phpPath scheduler.php"); | |
| 19 | + sleep(60); | |
| 20 | + } | |
| 21 | + | |
| 22 | +?> | |
| 0 | 23 | \ No newline at end of file | ... | ... |
bin/win32/schedulerServiceStatus.php
0 → 100644