From f045555fb8ecc301fd3a417063533c37e2af5158 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 24 Aug 2026 11:16:27 +0900 Subject: [PATCH] resolvconf: Add support for the Shepherd. * resolvconf.in (detect_init): Add support for the Shepherd. --- resolvconf.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resolvconf.in b/resolvconf.in index 3df7920..94e1513 100644 --- a/resolvconf.in +++ b/resolvconf.in @@ -481,6 +481,13 @@ detect_init() then nitroctl restart $1 fi' + elif [ -x /run/current-system/profile/bin/herd ] >/dev/null 2>&1; then + # Guix System + RESTARTCMD=' + if /run/current-system/profile/bin/herd eval root "(unless (lookup-running '\''$1) (error))" >/dev/null 2>&1 + then + /run/current-system/profile/bin/herd restart $1 + fi' else for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do [ -d $x ] || continue