Commit d806e950 authored by Russ Fish's avatar Russ Fish
Browse files

Minor tweaks to the CygWin prepare script.

parent 7ccd7200
......@@ -15,6 +15,7 @@ my @DBFILES = ();
my @VARDIRS = ("logs", "db", "jails", "boot", "lock", "lib/dhcp");
my $LOGDIR = "/var/log";
my $RUNDIR = "/var/run";
my $SOURCES = "~root/flux/testbed";
my $HISTORY = "~root/.bash_history";
my $MAILFILE = "/var/spool/mail/root";
my $NTPDRIFT = "/etc/ntp/drift";
......@@ -62,6 +63,10 @@ foreach my $dbfile (@DBFILES) {
# Stop anything holding a logfile open which we will want to remove below.
print "Stopping the watchdog ...\n";
system("$BINDIR/watchdog stop");
print "Cleaning logfiles ...\n";
opendir(LOG,$LOGDIR) or
die("Could not open directory $LOGDIR: $!");
......@@ -107,6 +112,9 @@ if (-f $NTPDRIFT) {
print "Clearing out testbed sources ...\n";
system("rm -rf $SOURCES");
print "Clearing out $RUNDIR ...\n";
system("rm -rf $RUNDIR/*.pid");
Markdown is supported
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