Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
593b3e6e
Commit
593b3e6e
authored
Oct 23, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gracefully restart the apache geni FCGID server, where appropriate.
parent
3ead4566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
utils/testbed-control.in
utils/testbed-control.in
+9
-1
No files found.
utils/testbed-control.in
View file @
593b3e6e
#!/usr/bin/perl -w
#
# Copyright (c) 2010-201
6
University of Utah and the Flux Group.
# Copyright (c) 2010-201
7
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -48,6 +48,8 @@ my $TBOPS = "@TBOPSEMAIL@";
my
$SETSITEVAR
=
"
$TB
/sbin/setsitevar
";
my
$STARTUP
=
"
/usr/local/etc/rc.d/3.testbed.sh
";
my
$MFRISBEED
=
"
/usr/local/etc/rc.d/3.mfrisbeed.sh
";
my
$PGENISUPPORT
=
@PROTOGENI_SUPPORT@
;
my
$APACHE_START
=
"
@APACHE_START_COMMAND
@
";
# Protos
sub
Fatal
($);
...
...
@@ -125,6 +127,12 @@ sub Restart()
if
(
$?
)
{
Fatal
("
Could not clear general/testbed_shutdown
");
}
if
(
$PGENISUPPORT
&&
!
system
("
grep -q FCGID /etc/rc.conf
"))
{
if
(
system
("
$APACHE_START
graceful geni
"))
{
Fatal
("
Could not restart apache geni server; swapping is disabled
");
}
}
if
(
$noenable
)
{
print
"
Leaving the web interface disabled as directed.
\n
";
}
...
...
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