Browse Source

restart tor when changing logging

Bob Mottram 8 years ago
parent
commit
c2f00aed9f
2 changed files with 8 additions and 2 deletions
  1. 3
    1
      src/freedombone-logging
  2. 5
    1
      src/freedombone-utils-final

+ 3
- 1
src/freedombone-logging View File

211
 
211
 
212
 systemctl restart syslog
212
 systemctl restart syslog
213
 if [ -d /etc/tor ]; then
213
 if [ -d /etc/tor ]; then
214
-    systemctl reload tor
214
+    if [[ "$2" != "--onion" ]]; then
215
+        systemctl restart tor
216
+    fi
215
 fi
217
 fi
216
 if [ -d /etc/nginx ]; then
218
 if [ -d /etc/nginx ]; then
217
     systemctl restart php5-fpm
219
     systemctl restart php5-fpm

+ 5
- 1
src/freedombone-utils-final View File

41
     split_gpg_key_into_fragments
41
     split_gpg_key_into_fragments
42
 
42
 
43
     # turn logging off by default
43
     # turn logging off by default
44
-    ${PROJECT_NAME}-logging off
44
+    if [[ $ONION_ONLY != 'no' ]]; then
45
+        ${PROJECT_NAME}-logging off --onion
46
+    else
47
+        ${PROJECT_NAME}-logging off
48
+    fi
45
 
49
 
46
     mark_completed $FUNCNAME
50
     mark_completed $FUNCNAME
47
     clear
51
     clear