Retain logging for tor so that we can monitor its health

This commit is contained in:
Bob Mottram 2018-05-04 12:46:00 +01:00
parent f2be32cb12
commit cecd4d876c
1 changed files with 2 additions and 3 deletions

View File

@ -179,9 +179,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
else
turn_logging_off
if [ -d /etc/tor ]; then
echo 'Log notice file /dev/null' > /etc/torrc.d/logging
rm /var/log/tor/*
if [ -d /etc/torrc.d ]; then
echo 'Log notice file /var/log/tor/notices.log' > /etc/torrc.d/logging
fi
if [ -d /var/log/radicale ]; then
$REMOVE_FILES_COMMAND /var/log/radicale/*