ソースを参照

Retain logging for tor so that we can monitor its health

Bob Mottram 6 年 前
コミット
cecd4d876c
共有1 個のファイルを変更した2 個の追加3 個の削除を含む
  1. 2
    3
      src/freedombone-logging

+ 2
- 3
src/freedombone-logging ファイルの表示

179
 else
179
 else
180
     turn_logging_off
180
     turn_logging_off
181
 
181
 
182
-    if [ -d /etc/tor ]; then
183
-        echo 'Log notice file /dev/null' > /etc/torrc.d/logging
184
-        rm /var/log/tor/*
182
+    if [ -d /etc/torrc.d ]; then
183
+        echo 'Log notice file /var/log/tor/notices.log' > /etc/torrc.d/logging
185
     fi
184
     fi
186
     if [ -d /var/log/radicale ]; then
185
     if [ -d /var/log/radicale ]; then
187
         $REMOVE_FILES_COMMAND /var/log/radicale/*
186
         $REMOVE_FILES_COMMAND /var/log/radicale/*