Commit 60e1a16c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Remove group lock files, which appear to get left around somehow.

parent 4b957b2e
...@@ -11,6 +11,7 @@ my $TMPASSWD = "/etc/rc.d/testbed/passwd"; ...@@ -11,6 +11,7 @@ my $TMPASSWD = "/etc/rc.d/testbed/passwd";
my $TMSHADOW = "/etc/rc.d/testbed/shadow"; my $TMSHADOW = "/etc/rc.d/testbed/shadow";
my $TMGSHADOW = "/etc/rc.d/testbed/gshadow"; my $TMGSHADOW = "/etc/rc.d/testbed/gshadow";
my @CONFIGS = ($TMIFC); my @CONFIGS = ($TMIFC);
my @LOCKFILES = ("/etc/group.lock", "/etc/gshadow.lock");
my $REBOOTCMD = "reboot"; my $REBOOTCMD = "reboot";
my $STATCMD = "status"; my $STATCMD = "status";
my $IFCCMD = "ifconfig"; my $IFCCMD = "ifconfig";
...@@ -186,6 +187,7 @@ close(TM); ...@@ -186,6 +187,7 @@ close(TM);
sub cleanup_node () { sub cleanup_node () {
print STDOUT "Cleaning node; removing configuration files ...\n"; print STDOUT "Cleaning node; removing configuration files ...\n";
unlink @CONFIGS; unlink @CONFIGS;
unlink @LOCKFILES;
printf STDOUT "Resetting passwd and group files\n"; printf STDOUT "Resetting passwd and group files\n";
if (system("$CP -f $TMGROUP $TMPASSWD /etc") != 0) { if (system("$CP -f $TMGROUP $TMPASSWD /etc") != 0) {
......
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