Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
921a976b
Commit
921a976b
authored
Jul 06, 2001
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added removal of root's mail file to prepare scripts
parent
1e4eeb4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
tmcd/freebsd/prepare
tmcd/freebsd/prepare
+7
-0
tmcd/linux/prepare
tmcd/linux/prepare
+7
-0
No files found.
tmcd/freebsd/prepare
View file @
921a976b
...
...
@@ -13,6 +13,7 @@ my $FSTAB = "/etc/fstab";
my
$LOGDIR
=
"
/var/log
";
my
$RUNDIR
=
"
/var/run
";
my
$HISTORY
=
"
/root/.history
";
my
$MAILFILE
=
"
/var/mail/root
";
#
# Load the testbed library.
...
...
@@ -104,6 +105,12 @@ if (-f $HISTORY) {
die("Could not unlink $HISTORY: $!");
}
print "Removing root
'
s mailfile ...\n";
if (-f $MAILFILE) {
unlink($MAILFILE) or
die("Could not unlink $MAILFILE: $!");
}
print "Cleaing .pid files ...\n";
system("rm
-
rf
$RUNDIR
/*.
pid
"
);
...
...
tmcd/linux/prepare
View file @
921a976b
...
...
@@ -13,6 +13,7 @@ my $FSTAB = "/etc/fstab";
my
$LOGDIR
=
"
/var/log
";
my
$RUNDIR
=
"
/var/run
";
my
$HISTORY
=
"
/root/.bash_history
";
my
$MAILFILE
=
"
/var/spool/mail/root
";
#
# Load the testbed library.
...
...
@@ -104,6 +105,12 @@ if (-f $HISTORY) {
die("Could not unlink $HISTORY: $!");
}
print "Removing root
'
s mailfile ...\n";
if (-f $MAILFILE) {
unlink($MAILFILE) or
die("Could not unlink $MAILFILE: $!");
}
print "Cleaing .pid files ...\n";
system("rm
-
rf
$RUNDIR
/*.
pid
"
);
...
...
Write
Preview
Markdown
is supported
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