Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
3efb0d8e
Commit
3efb0d8e
authored
Oct 21, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we have the local UUID/URN loaded into the environment.
parent
e24e617d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
protogeni/scripts/expire_daemon.in
protogeni/scripts/expire_daemon.in
+12
-0
No files found.
protogeni/scripts/expire_daemon.in
View file @
3efb0d8e
...
...
@@ -35,6 +35,7 @@ my $PGENISUPPORT = @PROTOGENI_SUPPORT@;
my
$PGENICLRHOUSE
=
@PROTOGENI_CLEARINGHOUSE@
;
my
$LOGFILE
=
"
$TB
/log/geniexpire
";
my
$IDLETIMES
=
"
$TB
/sbin/idletimes
";
my
$EMULAB_PEMFILE
=
"
$TB
/etc/genicm.pem
";
# un-taint path
$ENV
{'
PATH
'}
=
'
/bin:/usr/bin:/usr/local/bin:/usr/site/bin
';
...
...
@@ -82,11 +83,22 @@ require GeniUtil;
require
GeniTicket
;
require
GeniSlice
;
require
GeniCM
;
require
GeniCertificate
;
use
Experiment
;
use
Node
;
use
libtestbed
;
use
POSIX
qw(strftime)
;
#
# So we know who/what we are acting as.
#
my
$certificate
=
GeniCertificate
->
LoadFromFile
(
$EMULAB_PEMFILE
);
if
(
!
defined
(
$certificate
))
{
fatal
("
Could not get uuid/urn from
$EMULAB_PEMFILE
\n
");
}
$ENV
{'
MYUUID
'}
=
$certificate
->
uuid
();
$ENV
{'
MYURN
'}
=
"
urn:publicid:IDN+
@OURDOMAIN
@+authority+cm
";
# Go to ground.
if
(
!
$debug
)
{
if
(
TBBackGround
(
$LOGFILE
))
{
...
...
Write
Preview
Markdown
is supported
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