Permalink
Browse files

Clear wtmp log

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 9, 2019
1 parent 5a901c5 commit aa20f8da7246f233df15861a7528c1edf38eb057
Showing with 2 additions and 0 deletions.
  1. +2 −0 nems-cleanup.sh
@@ -104,6 +104,8 @@ else
find /var/log/ -iname "*.gz" -type f -delete
find /var/log/ -iname "*.log.*" -type f -delete
rm /var/log/nagios/archives/*.log
cat /dev/null > /var/log/wtmp
cat /dev/null > /var/log/btmp

# Clear system mail
find /var/mail/ -type f -exec cp /dev/null {} \;

0 comments on commit aa20f8d

Please sign in to comment.