| Summary: | tinc does not wait for network to be up | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | François Kooman <fkooman> |
| Component: | tinc | Assignee: | Fabian Affolter <mail> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-12 23:04:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
François Kooman
2016-11-12 20:59:00 UTC
I also created a copy of tinc.service in /etc/systemd/system, and changed the "After" to contain network-online.target, and also added the Wants line. -- cut -- # This is a mostly empty service, but allows commands like stop, start, reload # to propagate to all tinc@ service instances. [Unit] Description=Tinc VPN After=network-online.target Wants=network-online.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/true ExecReload=/bin/true WorkingDirectory=/etc/tinc [Install] WantedBy=multi-user.target -- /cut -- This also doesn't help: [fkooman@vpn system]$ systemctl -p After show network-online.target After=network.target network.service NetworkManager-wait-online.service [fkooman@vpn system]$ systemctl -p Wants show network-online.target Wants=NetworkManager-wait-online.service [fkooman@vpn system]$ systemctl show -p Wants tinc Wants=network-online.target system.slice tinc [fkooman@vpn system]$ systemctl show -p After tinc After=basic.target -.mount network-online.target systemd-journald.socket system.slice [fkooman@vpn system]$ systemctl show -p After tinc@vpn After=-.mount systemd-journald.socket basic.target system-tinc.slice I fixed it by using the OpenVPN service as a template, works like a charm now: -- cut -- [Unit] Description=Tinc net %i After=network.target [Service] Type=simple WorkingDirectory=/etc/tinc/%i ExecStart=/usr/sbin/tincd -n %i -D ExecReload=/usr/sbin/tincd -n %i -kHUP ExecStop=/usr/sbin/tincd -n %i -k TimeoutStopSec=5 Restart=always RestartSec=60 [Install] WantedBy=multi-user.target -- /cut -- Maybe this should become the default file? |