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
8f5910d8
Commit
8f5910d8
authored
Jul 16, 2010
by
Leigh B Stoller
Browse files
Report on long locked slices, only once a day.
parent
971986c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/expire_daemon.in
View file @
8f5910d8
...
...
@@ -37,6 +37,7 @@ my $LOGFILE = "$TB/log/expire_daemon.log";
my
$IDLETIMES
=
"
$TB
/sbin/idletimes
";
my
$EMULAB_PEMFILE
=
"
$TB
/etc/genicm.pem
";
my
$REGISTER
=
"
$TB
/sbin/protogeni/register_sliver
";
my
$SLEEP_INTERVAL
=
60
;
# un-taint path
$ENV
{'
PATH
'}
=
'
/bin:/usr/bin:/usr/local/bin:/usr/site/bin
';
...
...
@@ -349,6 +350,8 @@ sub ReportLockedSlices()
$TBOPS
);
}
my
$counter
=
0
;
while
(
1
)
{
if
(
NoLogins
())
{
sleep
(
5
);
...
...
@@ -362,14 +365,19 @@ while (1) {
ExpireSlices
();
ShutdownSlices
();
RegisterSlices
();
ReportLockedSlices
();
$counter
+=
$SLEEP_INTERVAL
;
if
(
$counter
>=
(
24
*
60
*
60
))
{
ReportLockedSlices
();
$counter
=
0
;
}
# Be certain stale info is gone.
Experiment
->
FlushAll
();
Node
->
FlushAll
();
GeniUtil::
FlushCaches
();
sleep
(
60
);
sleep
(
$SLEEP_INTERVAL
);
}
exit
(
0
);
...
...
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