from .. import print_section_start, print_section_end
from ..xlate import XLATOR
-__version__ = '0.2.4'
+__version__ = '0.2.5'
LOG = logging.getLogger(__name__)
echo "Clearing journal log ..."
journalctl --rotate --vacuum-time=2s
+ echo
+ echo "-----------------------------------------------------------"
+ echo "Truncating /var/log/*tmp ..."
+ cp -v /dev/null /var/log/btmp
+ cp -v /dev/null /var/log/wtmp
+
echo
echo "-----------------------------------------------------------"
echo "Remaining files in /var/log:"
echo "Clearing journal log ..."
journalctl --rotate --vacuum-time=2s
+ echo
+ echo "-----------------------------------------------------------"
+ echo "Truncating /var/log/*tmp ..."
+ cp -v /dev/null /var/log/btmp
+ cp -v /dev/null /var/log/wtmp
+
echo
echo "Sleeping some seconds ..."
sleep 3