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
8978b2d7
Commit
8978b2d7
authored
Sep 01, 2005
by
Russ Fish
Browse files
Slothd lock files were persisting and preventing startup.
parent
56d15b7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/cygwinxp/prepare
View file @
8978b2d7
...
@@ -76,11 +76,16 @@ system("$BINDIR/rc/rc.syncserver shutdown");
...
@@ -76,11 +76,16 @@ system("$BINDIR/rc/rc.syncserver shutdown");
print
"
Stopping slothd ...
\n
";
print
"
Stopping slothd ...
\n
";
system
("
$BINDIR
/rc/rc.slothd stop
");
system
("
$BINDIR
/rc/rc.slothd stop
");
my
$pidfile
=
"
/var/run/slothd.pid
";
unlink
(
$pidfile
)
or
warn
("
Could not unlink
$pidfile
");
print
"
Stopping evproxy ...
\n
";
print
"
Stopping evproxy ...
\n
";
my
$file
=
"
/var/run/evproxy.pid
";
$pidfile
=
"
/var/run/evproxy.pid
";
system
("
kill `cat
$file
`
")
system
("
kill `cat
$pidfile
`
")
if
(
-
f
$file
&&
-
s $file);
if
(
-
f
$pidfile
&&
-
s $pidfile);
unlink($pidfile) or
warn("Could not unlink $pid
file
"
);
# Logfiles.
# Logfiles.
print
"
Cleaning
logfiles
...\
n
"
;
print
"
Cleaning
logfiles
...\
n
"
;
...
...
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