From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly Date: Sun, 08 Mar 2020 12:13:41 +0100 Message-ID: <87y2sbcd5m.fsf@gnu.org> References: <878skw382o.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> <87a75azxu2.fsf@gnu.org> <87y2sb5x9p.fsf@gmail.com> <87tv2z5w7z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39929) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAtsh-00009s-Cf for bug-guix@gnu.org; Sun, 08 Mar 2020 07:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAtsg-00077D-EY for bug-guix@gnu.org; Sun, 08 Mar 2020 07:14:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAtsg-000775-BQ for bug-guix@gnu.org; Sun, 08 Mar 2020 07:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAtsg-00042f-7z for bug-guix@gnu.org; Sun, 08 Mar 2020 07:14:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tv2z5w7z.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 07 Mar 2020 23:03:44 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 39708@debbugs.gnu.org Hi! Maxim Cournoyer skribis: > I think I've gathered a clue! [...] > scheme@(shepherd service)> (make-forkexec-constructor > (list "/gnu/store/qyz1bncxlkxv44c03sva2akfsyqzkzh5-nfs-utils-2.4.2/sbin= /rpc.mountd" "--debug" "all")) > $5 =3D # > scheme@(shepherd service)> ($5) > $6 =3D 816 > scheme@(shepherd service)> (system "pidof rpc.mountd") > warning: 'waitpid' -1 failed unexpectedly: No child processes > 817 So that means that rpc.mountd =E2=80=9Cdaemonizes=E2=80=9D. Thus, shepherd= shouldn=E2=80=99t look at the PID of the process it spawns, but rather at what rpc.mountd=E2=80=99s PID file contains (I assume it creates a PID file, right?). IOW, we need to pass #:pid-file to =E2=80=98make-forkexec-constru= ctor=E2=80=99. Does that work for you? Thanks for debugging! Ludo=E2=80=99.