[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: services: Transient inetd services inherit requirements.
From: |
guix-commits |
Subject: |
05/09: services: Transient inetd services inherit requirements. |
Date: |
Sat, 20 May 2023 19:17:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 896a51258aa71a483d8f6be29169098de5967baa
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat May 20 15:41:07 2023 +0200
services: Transient inetd services inherit requirements.
That way, per-connection transient services such as 'sshd-123' inherit
dependencies of their "parent" ('sshd' in this example), which is more
consistent than not depending on anything.
* gnu/services/dict.scm (dicod-shepherd-service): Pass #:requirements to
'make-inetd-constructor'.
* gnu/services/messaging.scm (bitlbee-shepherd-service): Likewise.
* gnu/services/ssh.scm (openssh-shepherd-service): Likewise.
* gnu/services/vnc.scm (xvnc-shepherd-service): Likewise.
---
gnu/services/dict.scm | 1 +
gnu/services/messaging.scm | 1 +
gnu/services/ssh.scm | 3 ++-
gnu/services/vnc.scm | 1 +
4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/services/dict.scm b/gnu/services/dict.scm
index 28add4b06a..90d3c35b6c 100644
--- a/gnu/services/dict.scm
+++ b/gnu/services/dict.scm
@@ -176,6 +176,7 @@ database {
(addrinfo:addr
(car (getaddrinfo #$(first interfaces)
"dict")))))
+ #:requirements '#$requirement
#:user "dicod" #:group "dicod"
#:service-name-stem "dicod")
(make-forkexec-constructor
diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm
index 3a48cd81f6..c4963936a0 100644
--- a/gnu/services/messaging.scm
+++ b/gnu/services/messaging.scm
@@ -872,6 +872,7 @@ string, you could instantiate a prosody service like this:
#$(number->string port)
(logior AI_NUMERICHOST
AI_NUMERICSERV))))))
+ #:requirements '#$requirement
#:service-name-stem "bitlbee"
#:user "bitlbee" #:group "bitlbee"
diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm
index 303beed9ff..0abecd6b42 100644
--- a/gnu/services/ssh.scm
+++ b/gnu/services/ssh.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2014-2019, 2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2014-2019, 2022, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
@@ -607,6 +607,7 @@ of user-name/file-like tuples."
(make-socket-address AF_INET6 IN6ADDR_ANY
#$port-number)))
'()))
+ #:requirements '#$requirement
#:max-connections #$max-connections)
(make-forkexec-constructor #$openssh-command
#:pid-file #$pid-file)))
diff --git a/gnu/services/vnc.scm b/gnu/services/vnc.scm
index d57cf51af2..f90bd7258f 100644
--- a/gnu/services/vnc.scm
+++ b/gnu/services/vnc.scm
@@ -228,6 +228,7 @@ CONFIG, a <xvnc-configuration> object."
,@(if ipv6-socket
(list (endpoint ipv6-socket))
'()))
+ #:requirements '#$requirement
#:user "xvnc"
#:group "xvnc"))
#~(make-forkexec-constructor
- branch master updated (bd7b795aeb -> 7ddc239fc3), guix-commits, 2023/05/20
- 04/09: services: root-file-system: Remove reference to 'stop-logging'., guix-commits, 2023/05/20
- 01/09: doc: Clarify instructions for hibernation on a swap file., guix-commits, 2023/05/20
- 02/09: system: pam: Change 'stop' method to return #f., guix-commits, 2023/05/20
- 07/09: gnu: guile-dsv: Update to 0.6.0., guix-commits, 2023/05/20
- 05/09: services: Transient inetd services inherit requirements.,
guix-commits <=
- 06/09: gnu: guile-netlink: Update to 1.1.2., guix-commits, 2023/05/20
- 08/09: gnu: cagebreak: Update to 2.1.2., guix-commits, 2023/05/20
- 09/09: gnu: Add labwc., guix-commits, 2023/05/20
- 03/09: services: agetty: 'stop' method does nothing when running is 'idle., guix-commits, 2023/05/20