diff --git a/NEWS b/NEWS index 0153c3e..75ac72f 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,10 @@ * Added a working ykval-config.php that looks for a ksm on localhost. + * Removed System_Daemon dependency and made ykval-queue a simple + backgroundable process that can be daemonized using for instance + and init.d script. + * Version 2.19 released 2012-07-05 * Refactor database code, allowing for other underlying implementations diff --git a/ykval-queue.php b/ykval-queue.php index 605c205..e080697 100755 --- a/ykval-queue.php +++ b/ykval-queue.php @@ -1,56 +1,18 @@ #!/usr/bin/php reSync($baseParams['__YKVAL_SYNC_OLD_LIMIT__'], $baseParams['__YKVAL_SYNC_RESYNC_TIMEOUT__']); - $res=sleep($baseParams['__YKVAL_SYNC_INTERVAL__']); - } - -System_Daemon::stop(); +} while(sleep($baseParams['__YKVAL_SYNC_INTERVAL__'])==0); ?>