From 75a27b05a37da04e62c21878107f5cd0258f9dbf Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 07:05:36 +0100 Subject: [PATCH] CT 114: Tor-Bootstrap aus dem Journal von tor@default lesen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../ansible/roles/litecoin_tor/tasks/main.yml | 14 +++++++------- .../ansible/roles/litecoin_tor/templates/torrc.j2 | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml index dd22e65..982e2ce 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/tasks/main.yml @@ -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 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/templates/torrc.j2 b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/templates/torrc.j2 index fd44a94..aca04d3 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/templates/torrc.j2 +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_tor/templates/torrc.j2 @@ -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.