From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#39708: nfs-service-type broken: rpc.mountd respawns too quickly Date: Sun, 08 Mar 2020 10:37:45 -0400 Message-ID: <87h7yy6hfq.fsf@gmail.com> 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> <87y2sbcd5m.fsf@gnu.org> 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]:60582) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAx47-0006oy-9u for bug-guix@gnu.org; Sun, 08 Mar 2020 10:38:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAx46-0001ZW-Cf for bug-guix@gnu.org; Sun, 08 Mar 2020 10:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAx46-0001ZP-9s for bug-guix@gnu.org; Sun, 08 Mar 2020 10:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAx46-0002dy-86 for bug-guix@gnu.org; Sun, 08 Mar 2020 10:38:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87y2sbcd5m.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 08 Mar 2020 12:13:41 +0100") 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39708-done@debbugs.gnu.org Hello Ludovic! Ludovic Court=C3=A8s writes: > 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/sbi= n/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, shephe= rd 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-const= ructor=E2=80=99. That process doesn't create a PID file, so that doesn't work. > Does that work for you? > > Thanks for debugging! Thanks for assisting, and for adding a note to the Shepherd manual! :-) I'm closing this issue. Maxim