From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id o8JiHbpmd19BaQAA0tVLHw (envelope-from ) for ; Fri, 02 Oct 2020 17:43:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eDXGGLpmd18JfgAA1q6Kng (envelope-from ) for ; Fri, 02 Oct 2020 17:43:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0E6A09403CA for ; Fri, 2 Oct 2020 17:43:22 +0000 (UTC) Received: from localhost ([::1]:44368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOP5U-0007KZ-Uf for larch@yhetil.org; Fri, 02 Oct 2020 13:43:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOP5B-0007JY-Rz for guix-patches@gnu.org; Fri, 02 Oct 2020 13:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOP5B-0003zb-JJ for guix-patches@gnu.org; Fri, 02 Oct 2020 13:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOP5B-0001JG-HZ for guix-patches@gnu.org; Fri, 02 Oct 2020 13:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43769] [PATCH 2/2] guix-install.sh: Check the daemon 'nscd' and suggest it. References: <20201002173537.12045-1-zimon.toutoune@gmail.com> In-Reply-To: <20201002173537.12045-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Oct 2020 17:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43769@debbugs.gnu.org Cc: zimoun Received: via spool by 43769-submit@debbugs.gnu.org id=B43769.16016605424977 (code B ref 43769); Fri, 02 Oct 2020 17:43:01 +0000 Received: (at 43769) by debbugs.gnu.org; 2 Oct 2020 17:42:22 +0000 Received: from localhost ([127.0.0.1]:42472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOP4X-0001ID-OD for submit@debbugs.gnu.org; Fri, 02 Oct 2020 13:42:21 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:53038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOP4V-0001Hm-QG for 43769@debbugs.gnu.org; Fri, 02 Oct 2020 13:42:20 -0400 Received: by mail-wm1-f41.google.com with SMTP id q9so2456762wmj.2 for <43769@debbugs.gnu.org>; Fri, 02 Oct 2020 10:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+NdwtEU1OEjKB+qrYJzxOUqzTHQ/drUTAZeEQCnG6p0=; b=Li4TpgMNJOL4l9AhA+72h3LcG0xi3HnAr9lvHb5MYIQGEXsofJBdszjZp5L7Wor9TF Yjx5aPptD7kEhDlYeOyewfqf6G84gRt2GFxd+F07K6FoTNaHuMDK84ARVCdrVdMmMJEk Xc6grP1wCT8gDTqzIfMRpPmzYq6llqx69qTA/US5tk7j7EhPAo8K4tgMlKT50ph9LITF 3vUBrZS+k1j5yhTlFFJdmFMJV6RrLLmZ9Ez2OKYLyP53I2hECc+4PmXTkvOJSLi2x1Cc bOPvOZKKdAdPt38LeHt0bFjIoiosm0leAKFbBg7MytihgZ1sE9nB3zhiLRAOatWVtHu/ V8jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+NdwtEU1OEjKB+qrYJzxOUqzTHQ/drUTAZeEQCnG6p0=; b=HG9qdecrKBOVuvm0KeWAoFL0f3F4rLX3PvdfYz3xrzRFgvyaFcTbQcnF/fn3DgN0uw AiegJFRTl0YSlzb8zhpThmrp0B+5DRN/bwtygeIJYHSuUZDG/nBXyfvF1fJ3pwwSmBGd 0hU3Klku5VCwXBO2Pv6uMw//jKDoeqowEWWTka7NbXnhGAefZB7pmoTXpu+7GQ/6LCNH vEK6T2kITAK3HCT8dXkM+CuF+kWLC/lbLAwLVZQfAVqIPedHl57a4OInNPw/cTu/zeoZ 7ZbWuDbZb2OZXi1M8CK5jF9bBRmalk/bkwxftD1l1ZGe9aGlMiO3ydpDwHchxikeSge6 6UMg== X-Gm-Message-State: AOAM5338FnkkH47LpNKVKz9KSNz/CRE4X9B/Jlc1a8myIn3j0NYbeFic b7AOY1QUyDjrd5COhDtHZcl/FHVkV/i6Tg== X-Google-Smtp-Source: ABdhPJxEZ7PLb/eFar5V9mjkBjHAXXGHxMnnxksPoYfiSNgeD6zPesoTfj/JrhwcPQfMx88NMYaIrg== X-Received: by 2002:a1c:7c1a:: with SMTP id x26mr4249100wmc.112.1601660533940; Fri, 02 Oct 2020 10:42:13 -0700 (PDT) Received: from pfiuh02.univ-paris-diderot.fr ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id c16sm988772wrt.58.2020.10.02.10.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 10:42:13 -0700 (PDT) From: zimoun Date: Fri, 2 Oct 2020 19:42:11 +0200 Message-Id: <20201002174211.14467-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Li4TpgMN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: iuJj70vYK4xV Fixes . * etc/guix-install.sh (chk_sys_nscd): New function to check if the daemon 'nscd is running, otherwise suggest to install distribution-wide. --- etc/guix-install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index a5da198eb0..3860ab3cdc 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -200,6 +200,18 @@ chk_sys_arch() ARCH_OS="${arch}-${os}" } +chk_sys_nscd() +{ # Check if nscd is up and suggest to start it or install it + + if [ "$(type -P pidof)" ]; then + if [ ! "$(pidof nscd)" ]; then + _msg "${ERR}We recommand to install the daemon 'nscd' via your distribution..." + _msg "${ERR}...or to start it." + _msg "${ERR}Please read 'info guix \"Application Setup\"' about \"Name Service Switch\"" + fi + fi +} + # ------------------------------------------------------------------------------ #+MAIN @@ -552,6 +564,8 @@ main() _msg "${INF}cleaning up ${tmp_path}" rm -r "${tmp_path}" + chk_sys_nscd + _msg "${PAS}Guix has successfully been installed!" _msg "${INF}Run 'info guix' to read the manual." -- 2.28.0