Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 415976 Details for
Bug 540198
net-firewall/nftables doesn't provide systemd service file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The new systemd unit files
0003-Create-systemd-unit-files.patch (text/plain), 2.30 KB, created by
nvinson234
on 2015-11-03 04:07:01 UTC
(
hide
)
Description:
The new systemd unit files
Filename:
MIME Type:
Creator:
nvinson234
Created:
2015-11-03 04:07:01 UTC
Size:
2.30 KB
patch
obsolete
>From efe705ae869ea14e8636d1b50e4cbddd34c914ec Mon Sep 17 00:00:00 2001 >From: Nicholas Vinson <nvinson234@gmail.com> >Date: Mon, 2 Nov 2015 22:54:38 -0500 >Subject: [PATCH 3/4] Create systemd unit files > >Signed-off-by: Nicholas Vinson <nvinson234@gmail.com> >--- > .../nftables/files/systemd/nftables-restore.service | 14 ++++++++++++++ > net-firewall/nftables/files/systemd/nftables-store.service | 11 +++++++++++ > net-firewall/nftables/files/systemd/nftables.service | 6 ++++++ > 3 files changed, 31 insertions(+) > create mode 100644 net-firewall/nftables/files/systemd/nftables-restore.service > create mode 100644 net-firewall/nftables/files/systemd/nftables-store.service > create mode 100644 net-firewall/nftables/files/systemd/nftables.service > >diff --git net-firewall/nftables/files/systemd/nftables-restore.service net-firewall/nftables/files/systemd/nftables-restore.service >new file mode 100644 >index 0000000..7a7eacf >--- /dev/null >+++ net-firewall/nftables/files/systemd/nftables-restore.service >@@ -0,0 +1,14 @@ >+[Unit] >+Description=Restore nftables firewall rules >+# if both are queued for some reason, don't store before restoring :) >+Before=nftables-store.service >+# sounds reasonable to have firewall up before any of the services go up >+Before=network.target >+Conflicts=shutdown.target >+ >+[Service] >+Type=oneshot >+ExecStart=/usr/libexec/nftables/nftables.sh load /var/lib/nftables/rules-save >+ >+[Install] >+WantedBy=basic.target >diff --git net-firewall/nftables/files/systemd/nftables-store.service net-firewall/nftables/files/systemd/nftables-store.service >new file mode 100644 >index 0000000..373f8b9 >--- /dev/null >+++ net-firewall/nftables/files/systemd/nftables-store.service >@@ -0,0 +1,11 @@ >+[Unit] >+Description=Store nftables firewall rules >+Before=shutdown.target >+DefaultDependencies=No >+ >+[Service] >+Type=oneshot >+ExecStart=/usr/libexec/nftables/nftables.sh store /var/lib/nftables/rules-save >+ >+[Install] >+WantedBy=shutdown.target >diff --git net-firewall/nftables/files/systemd/nftables.service net-firewall/nftables/files/systemd/nftables.service >new file mode 100644 >index 0000000..d6f05c7 >--- /dev/null >+++ net-firewall/nftables/files/systemd/nftables.service >@@ -0,0 +1,6 @@ >+[Unit] >+Description=Store and restore nftables firewall rules >+ >+[Install] >+Also=nftables-store.service >+Also=nftables-restore.service >-- >2.6.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 540198
:
415972
|
415974
| 415976 |
415978