Wrench Zerotier timeouts down and hopefully solve the timeout issue in general

Was having issues with it stalling shutdowns. Hopefully it was just a unit misconfig, but I've no remorse in just killing some network daemon on shutdown
This commit is contained in:
Salt 2020-09-30 16:50:15 -05:00
parent dc67918c85
commit 39078538c5
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: restart zerotier
systemd:
daemon_reload: yes
name: zerotier-one.service
state: restarted
become: yes

View File

@ -20,6 +20,11 @@
apt:
name:
- zerotier-one
- name: Template out unit
template:
src: zerotier-one.service
dest: /etc/systemd/system/zerotier-one.service
notify: restart zerotier
- name: Join network
command:
argv:

View File

@ -0,0 +1,14 @@
[Unit]
Description=ZeroTier One
After=network.target
Wants=network-online.target
[Service]
ExecStart=/usr/sbin/zerotier-one
Restart=always
KillMode=process
# Issue 738
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target