Commit 8978b2d7 authored by Russ Fish's avatar Russ Fish
Browse files

Slothd lock files were persisting and preventing startup.

parent 56d15b7a
...@@ -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 $pidfile");
# Logfiles. # Logfiles.
print "Cleaning logfiles ...\n"; print "Cleaning logfiles ...\n";
......
Supports Markdown
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