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-stable
Commits
8139d82a
Commit
8139d82a
authored
Sep 25, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call tmcd jailconfig to get the name of the event server to use for
evproxy.
parent
ffda1af1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
tmcd/common/config/rc.fakejail
tmcd/common/config/rc.fakejail
+19
-1
No files found.
tmcd/common/config/rc.fakejail
View file @
8139d82a
...
...
@@ -135,6 +135,7 @@ sub doboot()
if
(
!
defined
(
$pid
))
{
return
;
}
# Get the boss info for below.
my
(
$bossname
,
$bossip
)
=
tmccbossinfo
();
if
(
!
defined
(
$bossname
))
{
...
...
@@ -142,13 +143,30 @@ sub doboot()
}
my
(
$domain
)
=
(
$bossname
=~
/^[^\.]+\.(.*)$/
);
print
("
Checking Testbed jail configuration
\n
");
my
@tmccresults
=
();
if
(
tmcc
(
TMCCCMD_JAILCONFIG
,
undef
,
\
@tmccresults
)
<
0
)
{
fatal
("
Could not get jailconfig from server!
");
}
return
if
(
!
@tmccresults
);
my
$eventserver
=
"
event-server.
${domain}
";
# parse the config
CONFPARSE:
for
(
@tmccresults
)
{
/^EVENTSERVER="(.*)"$/
&&
do
{
$eventserver
=
$
1
;
};
}
#
# Start the event proxy.
#
if
(
-
x
"
$BINDIR
/evproxy
")
{
print
("
Starting event proxy daemon
\n
");
system
("
$BINDIR
/evproxy -i
$EVPIDFILE
"
.
"
-s event
-
server
.
${domain}
-e
$pid
/
$eid
");
"
-s
$
eventserver
-e
$pid
/
$eid
");
if
(
$?
)
{
BootFatal
("
Error running
$BINDIR
/evproxy
");
}
...
...
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