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:
parent
dc67918c85
commit
39078538c5
9
roles/desktop-zerotier/handlers/main.yml
Normal file
9
roles/desktop-zerotier/handlers/main.yml
Normal 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
|
@ -20,6 +20,11 @@
|
|||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- zerotier-one
|
- zerotier-one
|
||||||
|
- name: Template out unit
|
||||||
|
template:
|
||||||
|
src: zerotier-one.service
|
||||||
|
dest: /etc/systemd/system/zerotier-one.service
|
||||||
|
notify: restart zerotier
|
||||||
- name: Join network
|
- name: Join network
|
||||||
command:
|
command:
|
||||||
argv:
|
argv:
|
||||||
|
14
roles/desktop-zerotier/templates/zerotier-one.service
Normal file
14
roles/desktop-zerotier/templates/zerotier-one.service
Normal 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
|
Loading…
Reference in New Issue
Block a user