CT 114: Tor-Bootstrap aus dem Journal von tor@default lesen
Debian 13 loggt trotz 'Log notice file' ins Journal (multi-instance-master + tor@default); torrc auf 'Log notice syslog', Status per journalctl. Live geprüft: Bootstrapped 100% (done). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -38,15 +38,15 @@
|
||||
timeout: 120
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Read the Tor bootstrap status from the notice log
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /usr/bin/grep
|
||||
- -E
|
||||
- Bootstrapped [0-9]+%?
|
||||
- "{{ litecoin_tor_log }}"
|
||||
- name: Read the Tor bootstrap status from the journal (tor@default)
|
||||
ansible.builtin.shell: |
|
||||
/usr/bin/journalctl -u tor@default.service --no-pager -n 500 --output=cat \
|
||||
| /usr/bin/grep -E 'Bootstrapped [0-9]+%' | tail -n 1
|
||||
args:
|
||||
executable: /bin/bash
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: litecoin_tor_bootstrap
|
||||
when: not ansible_check_mode
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ ControlPort {{ litecoin_tor_control_port }}
|
||||
DataDirectory {{ litecoin_tor_data_directory }}
|
||||
CacheDirectory {{ litecoin_tor_data_directory }}
|
||||
PidFile /run/tor/tor.pid
|
||||
Log notice file {{ litecoin_tor_log }}
|
||||
# Debian 13 logs via the journal (tor@default); no rsyslog in the LXC.
|
||||
Log notice syslog
|
||||
RunAsDaemon 0
|
||||
User debian-tor
|
||||
# Client only: never act as relay, bridge or onion service host.
|
||||
|
||||
Reference in New Issue
Block a user