Commit 96d73715 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add root check to ensure started as root.

Init $libdb::DBQUERY_MAXTRIES to 10 since the reload daemon should
always run.
parent 11bae5b7
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -34,6 +34,14 @@ my $DBNAME = "@TBDBNAME@";
my $TBOPS = "@TBOPSEMAIL@";
my $TBLOGS = "@TBLOGSEMAIL@";
#
# Only root can run this script.
#
if ($UID) {
die("*** $0:\n".
" Only root can run this script!\n");
}
#
# Testbed Support libraries
#
......@@ -41,6 +49,9 @@ use lib "@prefix@/lib";
use libdb;
use libtestbed;
# Be careful not to exit on transient error
$libdb::DBQUERY_MAXTRIES = 10;
my $tbbindir = "$TB/bin/";
my $batchdir = "$TB/batch";
my $startexp = "$TB/bin/startexp";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment