summaryrefslogtreecommitdiff
path: root/gnu/services/networking.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/networking.scm')
-rw-r--r--gnu/services/networking.scm15
1 files changed, 10 insertions, 5 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index c5ebb1b673..b0d1c74490 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -10,7 +10,7 @@
;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019 Florian Pelz <pelzflorian@pelzflorian.de>
-;;; Copyright © 2019, 2021, 2024, 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2019, 2021, 2024, 2025 Maxim Cournoyer <maxim@guixotic.coop>
;;; Copyright © 2019 Sou Bunnbu <iyzsong@member.fsf.org>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
@@ -1484,7 +1484,10 @@ project's documentation} for more information."
,(file-union "network-manager-configuration-directory"
extra-configuration-files)
"/etc/NetworkManager/conf.d"))
- '()))))
+ '())
+ ;; Ensure "/etc/ipsec.secrets" exists, which is required by the
+ ;; nm-l2tp plugin.
+ (mkdir-p "/etc/ipsec.secrets"))))
(define (vpn-plugin-directory plugins)
"Return a directory containing PLUGINS, the NM VPN plugins."
@@ -3000,15 +3003,17 @@ of the IPFS peer-to-peer storage network.")))
(keepalived keepalived-configuration-keepalived ;file-like
(default keepalived))
(config-file keepalived-configuration-config-file ;file-like
- (default #f)))
+ (default #f))
+ (shepherd-requirement keepalived-configuration-shepherd-requirement
+ (default '(networking user-processes))))
(define (keepalived-shepherd-service config)
(match-record config <keepalived-configuration>
- (keepalived config-file)
+ (keepalived config-file shepherd-requirement)
(list (shepherd-service
(provision '(keepalived))
(documentation "Run keepalived.")
- (requirement '(loopback))
+ (requirement shepherd-requirement)
(start #~(make-forkexec-constructor
(list (string-append #$keepalived "/sbin/keepalived")
"--dont-fork" "--log-console" "--log-detail"