Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
96d73715
Commit
96d73715
authored
Jan 30, 2003
by
Leigh B. Stoller
Browse files
Add root check to ensure started as root.
Init $libdb::DBQUERY_MAXTRIES to 10 since the reload daemon should always run.
parent
11bae5b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/batch_daemon.in
View file @
96d73715
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
2
University of Utah and the Flux Group.
# Copyright (c) 2000-200
3
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
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment