guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

16/55: services: nftables: Add 'configuration' action.


From: guix-commits
Subject: 16/55: services: nftables: Add 'configuration' action.
Date: Thu, 21 Sep 2023 13:31:35 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 4163c617b84802fbe780b9668bb092eab479fc28
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Sep 16 12:36:17 2023 +0800

    services: nftables: Add 'configuration' action.
    
    * gnu/services/networking.scm (nftables-shepherd-service)[actions]: New 
field.
---
 gnu/services/networking.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index befaca0aca..f4aff2d979 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -1844,6 +1844,7 @@ table inet filter {
     (let ((nft (file-append package "/sbin/nft")))
       (shepherd-service
        (documentation "Packet filtering and classification")
+       (actions (list (shepherd-configuration-action ruleset)))
        (provision '(nftables))
        (start #~(lambda _
                   (invoke #$nft "--file" #$ruleset)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]