CT 114: Tor-Bootstrap aus dem Journal von tor@default lesen
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 31s
ci-static / markdown-links (push) Successful in 21s

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:
2026-11-27 07:05:36 +01:00
parent 086a4e6f22
commit 75a27b05a3
2 changed files with 9 additions and 8 deletions
@@ -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.