Actually bind to qubes-network.service which starts only when network needs to be routed.

This commit is contained in:
Manuel Amador (Rudd-O) 2025-02-26 23:43:45 +00:00
parent 3a214bdfe1
commit 15edce34a8
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
%define mybuildnumber %{?build_number}%{?!build_number:1}
Name: qubes-network-server
Version: 0.1.3
Version: 0.1.4
Release: %{mybuildnumber}%{?dist}
Summary: Turn your Qubes OS into a network server
BuildArch: noarch
@ -93,6 +93,9 @@ tox --current-env
%systemd_post qubes-routing-manager.service
%preun
# Remove obsolete unit enablement paths.
rm -f %{_sysconfdir}/systemd/system/multi-user.target.wants/qubes-routing-manager.service || true
rm -f %{_sysconfdir}/systemd/system/qubes-iptables.service.wants/qubes-routing-manager.service || true
%systemd_preun qubes-routing-manager.service
%postun

View File

@ -1,7 +1,7 @@
[Unit]
Description=Configure the network to allow network server VMs
Documentation=https://github.com/Rudd-O/qubes-network-server
After=qubes-iptables.service
After=qubes-network.service qubes-iptables.service
BindsTo=qubes-iptables.service
[Service]
@ -9,4 +9,4 @@ Type=notify
ExecStart=@SBINDIR@/qubes-routing-manager
[Install]
WantedBy=qubes-iptables.service
WantedBy=qubes-network.service