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.