From efb2db8fc0839ce62c67954008900388ea1ec1fe Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 10 Jul 2015 10:24:40 -0700 Subject: [PATCH] transitioner_catchup.php: fix it. --- sched/transitioner_catchup.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sched/transitioner_catchup.php b/sched/transitioner_catchup.php index be47094e45..ee0f6c4df2 100755 --- a/sched/transitioner_catchup.php +++ b/sched/transitioner_catchup.php @@ -18,7 +18,9 @@ // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . -require_once("html/inc/boinc_db.inc"); +chdir("html/ops"); +require_once("../inc/boinc_db.inc"); +chdir("../.."); // script to let transitioners catch up, then run start @@ -28,7 +30,9 @@ function catchup() { $wus = BoincWorkunit::enum("transition_time<$now limit 1"); if (count($wus) == 0) break; echo "Some WUs need transition - running transitioner.\n"; - system("bin/transitioner --one_pass"); + $ret = system("bin/transitioner --one_pass"); + echo "ret: $ret\n"; + sleep(1); } echo "Transitioner is caught up.\n"; }