Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
5e8cf0e2
Commit
5e8cf0e2
authored
Sep 25, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all the spool files in /var/mail, not just root.
parent
ca8fba0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
tmcd/freebsd/prepare
tmcd/freebsd/prepare
+3
-6
No files found.
tmcd/freebsd/prepare
View file @
5e8cf0e2
...
...
@@ -18,7 +18,7 @@ my $FSTAB = "/etc/fstab";
my
$LOGDIR
=
"
/var/log
";
my
$RUNDIR
=
"
/var/run
";
my
$HISTORY
=
"
/root/.history
";
my
$MAIL
FILE
=
"
/var/mail
/root
";
my
$MAIL
DIR
=
"
/var/mail
";
my
$LEASES
=
"
/var/db/dhclient.leases
";
my
$NTPDRIFT
=
"
/etc/ntp.drift
";
my
$SFSUSERS
=
"
/etc/sfs/sfs_users
";
...
...
@@ -126,11 +126,8 @@ 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 "Cleaning mail spool files ...\n";
system("rm -rf $MAILDIR/*");
#
# Just removing the drift file results in no drift being tracked,
...
...
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