From af046139f93b88a057df37111c99a82f9f95947c Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 8 Oct 2013 10:19:59 +0200 Subject: [PATCH] make sure the indexer lock is removed --- root/etc/cron.daily/ajaxplorer-indexer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/etc/cron.daily/ajaxplorer-indexer b/root/etc/cron.daily/ajaxplorer-indexer index 6d40350..21cbe51 100644 --- a/root/etc/cron.daily/ajaxplorer-indexer +++ b/root/etc/cron.daily/ajaxplorer-indexer @@ -34,6 +34,8 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){ '-u=RDiin175M40T0cYvXLARpAi+1TsSVkbksEDZ4KvwBuY= '. '-t=e71479ebc4365176d9f09fe957780024 -a=index '. '-r='.$name.' --secure_token='.$id.' --dir=/ --_method=put >/dev/null 2>&1'); + # In some cases, the lock file is not removed, make sure it's unlocked + unlink <"/var/cache/ajaxplorer/indexes/.ajxp_lock-$name">; } # We should now restart OOo to release memory if (-d '/var/service/ooo'){