1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00
yubikey-val/ykval-queuedaemon.php

23 lines
404 B
PHP
Raw Normal View History

2009-12-07 13:33:24 +00:00
<?php
require_once 'ykval-synclib.php';
require_once 'ykval-config.php';
if ($argc==2) $server=$argv[1];
else {
echo "Usage: " . $argv[0] . " server\n";
exit;
}
2009-12-07 13:33:24 +00:00
$sl = new SyncLib();
2009-12-07 15:31:33 +00:00
$resync = $baseParams['__YKVAL_SYNC_INTERVAL__'];
2009-12-07 13:33:24 +00:00
# Loop forever and resync
while (True) {
$sl->reSync($baseParams['__YKVAL_SYNC_OLD_LIMIT__'], 10);
2009-12-07 13:33:24 +00:00
2009-12-07 15:39:04 +00:00
sleep($baseParams['__YKVAL_SYNC_INTERVAL__']);
}
2009-12-07 13:33:24 +00:00
?>