[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/15: services: avahi: Use socket activation and log to stderr.
From: |
guix-commits |
Subject: |
04/15: services: avahi: Use socket activation and log to stderr. |
Date: |
Sun, 2 Jun 2024 14:56:48 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3298ec0200af0d0b0850a388df0a78e87320307f
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed May 22 10:56:10 2024 +0200
services: avahi: Use socket activation and log to stderr.
* gnu/services/avahi.scm (avahi-shepherd-service): Change to systemd
style. Remove ‘--daemonize’ option and #:pid-file. Add #:lazy-start?
and #:log-file.
Change-Id: I1915243f057ff3bbe281f46f17826f24b124f659
---
gnu/services/avahi.scm | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gnu/services/avahi.scm b/gnu/services/avahi.scm
index 1c4220e490..9352492bbd 100644
--- a/gnu/services/avahi.scm
+++ b/gnu/services/avahi.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2014-2020, 2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2014-2020, 2022, 2024 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -131,13 +131,17 @@
(provision '(avahi-daemon))
(requirement '(user-processes dbus-system networking))
- (start #~(make-forkexec-constructor
+ (start #~(make-systemd-constructor
(list #$(file-append avahi "/sbin/avahi-daemon")
- "--daemonize"
#$@(if debug? #~("--debug") #~())
"-f" #$config)
- #:pid-file "/run/avahi-daemon/pid"))
- (stop #~(make-kill-destructor))
+ (list (endpoint
+ (make-socket-address
+ AF_UNIX
+ "/run/avahi-daemon/socket")))
+ #:lazy-start? #f
+ #:log-file "/var/log/avahi-daemon.log"))
+ (stop #~(make-systemd-destructor))
(actions (list (shepherd-configuration-action config)))))))
(define avahi-service-type
- 11/15: gnu: Add rust-nix-0.28., (continued)
- 11/15: gnu: Add rust-nix-0.28., guix-commits, 2024/06/03
- 06/15: gnu: emacs-org: Update to 9.6.30., guix-commits, 2024/06/03
- 05/15: services: darkstat: Depend on ‘user-processes’., guix-commits, 2024/06/03
- 12/15: gnu: Add rust-dns-lookup-2., guix-commits, 2024/06/03
- 10/15: gnu: Add rust-libc-0.2.153., guix-commits, 2024/06/03
- 13/15: gnu: Add rust-temp-env-0.3., guix-commits, 2024/06/03
- 09/15: gnu: knot: Remove input labels., guix-commits, 2024/06/03
- 08/15: gnu: knot: Build against libbpf 0.8., guix-commits, 2024/06/03
- 14/15: gnu: Add rust-slog-async-2-8., guix-commits, 2024/06/03
- 07/15: gnu: libbpf: Reintroduce 0.8.1., guix-commits, 2024/06/03
- 04/15: services: avahi: Use socket activation and log to stderr.,
guix-commits <=