This commit is contained in:
Thomas Willingham 2014-10-21 17:27:13 +01:00
parent a03c3d5480
commit 1fb2de6d55

View file

@ -25,7 +25,7 @@ function poller_run($argv, $argc){
if(! $interval)
$interval = ((get_config('system','delivery_interval') === false) ? 3 : intval(get_config('system','delivery_interval')));
// Check for a logfile. If it exists, but is over an hour old, it's stale. Ignore it.
// Check for a lockfile. If it exists, but is over an hour old, it's stale. Ignore it.
$lockfile = 'store/[data]/poller';
if ((file_exists($lockfile)) && (filemtime($lockfile) > (time() - 3600))) {
logger("poller: Already running");