Logo white

Peter M. Groen / knowledgetree

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • knowledgetree
  • bin
  • win32
  • schedulerService.php
  • KTS-2525 ...
    110abadb
    "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
    Conrad Vermeulen authored
    2007-10-19 13:23:49 +0000  
    Browse Code ยป
schedulerService.php 359 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php


$dir = realpath(dirname(__FILE__) . '/..');
chdir($dir);

$phpPath = realpath('../../../php/php.exe');
if (!is_file($phpPath))
{
	die('Cannot find php.exe');
}


  win32_start_service_ctrl_dispatcher('ktscheduler');

  while (WIN32_SERVICE_CONTROL_STOP != win32_get_last_control_message())
  {
	system("$phpPath scheduler.php");
    sleep(60);
  }

?>