mirror of
https://github.com/Rudd-O/qubes-network-server.git
synced 2025-03-01 14:22:35 +01:00
Actually bind to qubes-network.service which starts only when network needs to be routed.
This commit is contained in:
parent
3a214bdfe1
commit
15edce34a8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user