Retain logging for tor so that we can monitor its health
This commit is contained in:
parent
f2be32cb12
commit
cecd4d876c
|
@ -179,9 +179,8 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then
|
||||||
else
|
else
|
||||||
turn_logging_off
|
turn_logging_off
|
||||||
|
|
||||||
if [ -d /etc/tor ]; then
|
if [ -d /etc/torrc.d ]; then
|
||||||
echo 'Log notice file /dev/null' > /etc/torrc.d/logging
|
echo 'Log notice file /var/log/tor/notices.log' > /etc/torrc.d/logging
|
||||||
rm /var/log/tor/*
|
|
||||||
fi
|
fi
|
||||||
if [ -d /var/log/radicale ]; then
|
if [ -d /var/log/radicale ]; then
|
||||||
$REMOVE_FILES_COMMAND /var/log/radicale/*
|
$REMOVE_FILES_COMMAND /var/log/radicale/*
|
||||||
|
|
Loading…
Reference in New Issue