2024-05-24 06:50:22 +00:00
|
|
|
From 439266671bbd790b3cb339c157c87db382e85c96 Mon Sep 17 00:00:00 2001
|
2020-04-29 11:57:00 +00:00
|
|
|
From: Brice Waegeneire <brice@waegenei.re>
|
|
|
|
Date: Sat, 9 May 2020 15:52:06 +0200
|
|
|
|
Subject: [PATCH] Add RESTARTCMD for Guix System.
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
openresolv need to know how to restart the nscd service, this patch teach it
|
|
|
|
to do it on Guix System by using shepherd.
|
|
|
|
|
|
|
|
resolvconf.in | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/resolvconf.in b/resolvconf.in
|
2024-05-24 06:50:22 +00:00
|
|
|
index aa77ffe..921882e 100644
|
2020-04-29 11:57:00 +00:00
|
|
|
--- a/resolvconf.in
|
|
|
|
+++ b/resolvconf.in
|
2024-05-24 06:50:22 +00:00
|
|
|
@@ -375,6 +375,13 @@ detect_init()
|
2020-04-29 11:57:00 +00:00
|
|
|
fi'
|
2024-05-24 06:50:22 +00:00
|
|
|
elif [ -d /etc/dinit.d ] && command -v dinitctl >/dev/null 2>&1; then
|
|
|
|
RESTARTCMD='dinitctl --quiet restart --ignore-unstarted $1'
|
2020-04-29 11:57:00 +00:00
|
|
|
+ elif [ -e /gnu/store ] && [ -e /run/current-system/profile ]; then
|
|
|
|
+ # Guix System
|
|
|
|
+ RESTARTCMD='
|
|
|
|
+ if /run/current-system/profile/bin/herd status $1 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
|
|
|
|
--
|
2024-05-24 06:50:22 +00:00
|
|
|
2.41.0
|
2020-04-29 11:57:00 +00:00
|
|
|
|