Commit 5bda7b97 authored by Leigh B. Stoller's avatar Leigh B. Stoller

If /proj/$pid not mounted, then save log in /var/emulab/logs.

Nice for protogeni experiments.
parent 815f6c6f
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
......@@ -49,7 +49,12 @@ else {
if (!defined($eid)) {
fatal("Could not determine pid/eid");
}
$logtemplate = "/proj/$pid/logs/runlog-$eid.$vname.XXXXXX";
if (! -e "/proj/$pid/logs") {
$logtemplate = "$VARDIR/logs/runlog.XXXXXX";
}
else {
$logtemplate = "/proj/$pid/logs/runlog-$eid.$vname.XXXXXX";
}
}
#
......
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