Skip to content

Commit

Permalink
Tor needs more than 30 sec after reboot to come up
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed Oct 6, 2024
1 parent 2368a02 commit aa274f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/setup_common/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- name: Reboot system
listen: "Reboot system"
vars:
__additional_timeout_tor: "{{ tor_port is defined | ternary(30, 0) }}"
__additional_timeout_tor: "{{ tor_port is defined | ternary(45, 0) }}"
ansible.builtin.reboot:
connect_timeout: 2
reboot_timeout: "{{ 50 + __additional_timeout_tor | int }}"
2 changes: 1 addition & 1 deletion playbooks/roles/setup_tor/templates/tor.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Wants=network-online.target
ExecStartPre=/usr/bin/tor --verify-config
ExecStart=/usr/bin/tor
ExecReload=/bin/kill -HUP ${MAINPID}
TimeoutSec=30
TimeoutSec=45
User=tor
Group=tor
Restart=on-failure
Expand Down

0 comments on commit aa274f4

Please sign in to comment.