summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2016-10-23 10:10:49 -0700
committerPatrice Clement <monsieurp@gentoo.org>2016-10-26 23:16:28 +0200
commite42ae854f8818adf804c76b193d0524fac4dd1d4 (patch)
tree2d3f97da05f3ab34737b7c286b0c80cf22dcfde0 /net-firewall
parentnet-misc/owncloud-client: drop old. (diff)
downloadgentoo-e42ae854f8818adf804c76b193d0524fac4dd1d4.tar.gz
gentoo-e42ae854f8818adf804c76b193d0524fac4dd1d4.tar.bz2
gentoo-e42ae854f8818adf804c76b193d0524fac4dd1d4.zip
net-firewall/nftables: update systemd file target.
Change the systemd unit files to use Before=network-pre.target Wants=network-pre.target as this better aligns with systemd documentation for this type of service. Special thanks to Shaun Bouckaert for triggering this review. He originally asked (via email) about how the connman systemd unit file handled its dependencies which prompted me to check this package as well. As for connman, v1.33-r1 seems to be aligned with systemd documentation. Package-Manager: portage-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/2649 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/nftables/files/systemd/nftables-restore.service4
-rw-r--r--net-firewall/nftables/nftables-0.6-r4.ebuild (renamed from net-firewall/nftables/nftables-0.6-r3.ebuild)0
2 files changed, 2 insertions, 2 deletions
diff --git a/net-firewall/nftables/files/systemd/nftables-restore.service b/net-firewall/nftables/files/systemd/nftables-restore.service
index fbd5a838af54..4b68b0a5b09e 100644
--- a/net-firewall/nftables/files/systemd/nftables-restore.service
+++ b/net-firewall/nftables/files/systemd/nftables-restore.service
@@ -1,8 +1,8 @@
[Unit]
Description=Store and restore nftables firewall rules
ConditionPathExists=/var/lib/nftables/rules-save
-Before=network.target
-Before=shutdown.target
+Before=network-pre.target
+Wants=network-pre.target
[Service]
Type=oneshot
diff --git a/net-firewall/nftables/nftables-0.6-r3.ebuild b/net-firewall/nftables/nftables-0.6-r4.ebuild
index 7874baf0062b..7874baf0062b 100644
--- a/net-firewall/nftables/nftables-0.6-r3.ebuild
+++ b/net-firewall/nftables/nftables-0.6-r4.ebuild