From unknown Thu Sep 11 11:56:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33260 <33260@debbugs.gnu.org> To: bug#33260 <33260@debbugs.gnu.org> Subject: Status: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd Reply-To: bug#33260 <33260@debbugs.gnu.org> Date: Thu, 11 Sep 2025 18:56:31 +0000 retitle 33260 [Shepherd] ERROR: In procedure stat: No such file or director= y: "/run/user/30011/shepherd reassign 33260 guix submitter 33260 swedebugia severity 33260 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 17:34:58 2018 Received: (at submit) by debbugs.gnu.org; 4 Nov 2018 22:34:58 +0000 Received: from localhost ([127.0.0.1]:34388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJQyv-0002Fw-U7 for submit@debbugs.gnu.org; Sun, 04 Nov 2018 17:34:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJQyu-0002FX-Eg for submit@debbugs.gnu.org; Sun, 04 Nov 2018 17:34:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJQyo-00027k-Is for submit@debbugs.gnu.org; Sun, 04 Nov 2018 17:34:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJQyo-00027C-Ef for submit@debbugs.gnu.org; Sun, 04 Nov 2018 17:34:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJQyn-0002cT-HE for bug-guix@gnu.org; Sun, 04 Nov 2018 17:34:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJQyk-00022g-9z for bug-guix@gnu.org; Sun, 04 Nov 2018 17:34:49 -0500 Received: from mx1.riseup.net ([198.252.153.129]:43749) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJQyj-0001e7-Vh for bug-guix@gnu.org; Sun, 04 Nov 2018 17:34:46 -0500 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id A38741A01A5 for ; Sun, 4 Nov 2018 14:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541370866; bh=IWHA/cMzFT515A8HF2+2z33Bu4cjRFjuWE3sxZi5f1M=; h=From:Subject:To:Date:From; b=BrBxoEIKhKrqFN1/2Q7PLichR4iyf6ZKsJ1tI0oWqdxTt2rDE8sfqr56tGFEPyWve diU2wD8+NvGDkkJ0V0Ir6phFvMCLyPTKSfwC4VzRI4asm39crWSTjiaoePCgEZ6th4 kzckpp2oqaEpIDCmMt2VGpkFkKkatfDnC5n1prPc= X-Riseup-User-ID: 66A5FA649EFB46CDEA7BF9AF6657537D96DF6BC755B917902D5B8DF16838717A Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id C887CE6EE3 for ; Sun, 4 Nov 2018 14:34:25 -0800 (PST) From: swedebugia Subject: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd To: bug-guix@gnu.org Message-ID: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> Date: Sun, 4 Nov 2018 23:34:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) In a VM with GuixSD I did: $ shepherd Backtrace: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3 (primitiv= e-load "/run/current-system/profile/bin/shephe=E2=80=A6") In shepherd.scm: =C2=A0=C2=A0=C2=A0 164:9=C2=A0 2 (main . _) In shepherd/support.scm: =C2=A0=C2=A0 396:20=C2=A0 1 (verify-dir _ #:secure? _) In unknown file: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (stat "/r= un/user/30011/shepherd" #) ERROR: In procedure stat: In procedure stat: No such file or directory: "/run/user/30011/shepherd" $ shepherd --version shepherd (GNU Shepherd) 0.4.0 Copyright (C) 2018 the Shepherd authors License GPLv3+: GNU GPL version 3 or later=20 This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ echo $PATH /run/setuid-programs:/home/sdb/.config/guix/current/bin:/home/sdb/.guix-p= rofile/bin:/run/current-system/profile/bin:/run/current-system/profile/sb= in sdb@komputilo ~$ which shepherd /run/current-system/profile/bin/shepherd sdb@komputilo ~$ ls $(which shepherd) /run/current-system/profile/bin/shepherd sdb@komputilo ~$ ls -l $(which shepherd) lrwxrwxrwx 2 root root 71 Jan=C2=A0 1=C2=A0 1970=20 /run/current-system/profile/bin/shepherd ->=20 /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd $ guix --version guix (GNU Guix) 0.15.0 Copyright (C) 2018 the Guix authors License GPLv3+: GNU GPL version 3 or later=20 This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Root env can be supplied on request but does not fail. --=20 Cheers Swedebugia From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 04 19:55:46 2018 Received: (at 33260) by debbugs.gnu.org; 5 Nov 2018 00:55:46 +0000 Received: from localhost ([127.0.0.1]:34439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJTBC-0005c7-Hu for submit@debbugs.gnu.org; Sun, 04 Nov 2018 19:55:46 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:38548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJTBA-0005by-4b for 33260@debbugs.gnu.org; Sun, 04 Nov 2018 19:55:44 -0500 Received: from localhost (178.112.174.42.wireless.dyn.drei.com [178.112.174.42]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 34ECF3360176; Mon, 5 Nov 2018 01:55:42 +0100 (CET) Date: Mon, 5 Nov 2018 01:55:35 +0100 From: Danny Milosavljevic To: swedebugia Subject: Invocation of per-user shepherd - design needed Message-ID: <20181105015535.177655c9@scratchpost.org> In-Reply-To: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/.x9twJO0vlUo5yTXCXUf1iD"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/.x9twJO0vlUo5yTXCXUf1iD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, this is a known problem in GuixSD (not in shepherd) and I don't think anyon= e fixed it yet, because it requires some design (and is kinda harder than ignoring = the problem and letting the user choose - see below). There is only rudimentary support for distinguishing sessions from users in= GuixSD (I guess nowadays everyone is using a computer of their own and people don't remember huge shared computers which you would dial into multiple times from different sites (not necessarily after hanging up the previous connection) - I work with the latter daily so I do remember). Shepherd assumes to be run per user (for non-root), not per session. For the vast majority of tasks-to-be-automated, that is what you want. But who starts the per-user shepherd? Right now, nobody. I manually edited my session startup file (in my case ~/.fluxbox/startup) to invoke "shepherd" and expect it to error on subsequent sessions except for = the first one for this user - so only one shepherd per user will actually stay = running. This is a simple way to do it and I prefer it to any more complicated solut= ions - since it's in the unix spirit of "worse is better" (in this case: non-sarca= stic). (For a more universal (non-fluxbox, it's too old) way, use ~/.config/autost= art and put a "shepherd.desktop" file there) This assumes that nobody will clean up session processes when the session e= nds, otherwise it will do the wrong thing (i.e. kill the per-user shepherd even = though other sessions of that user still need it). The assumption is justified because of the following: The right design overall for the system would be to clean up USER processes when all sessions of that user ended (this is not the default for elogind, = but it could be enabled by the logind.conf option "KillUserProcesses"). (This would break Screen if not started right away with the session, though) In any case, the "simple way" above works when KillUserProcesses=3Dno and also when KillUserProcesses=3Dyes, so for me problem solved ;P (Also, traditionally UNIX would kill the controlling (that is, first) proce= ss that was started in a terminal once that terminal is disconnected (kill via sending that controlling process SIGHUP). I don't think that that is a problem here since that controlling process is usually the shell, not shepherd). There are multiple other ways to handle starting the per-user shepherd, but they are kinda complicated and all require new GuixSD services: * One way would be to monitor /run/user (see elogind for why), wait until a= new subdirectory appears, and then launch the per-user shepherd (as that user, of course). (In the end we have a race between our new service running the per-user shepherd and our user logging out. So also wait until a subdirect= ory disappears and kill the corresponding per-user shepherd - if it's still the= re :P) A very easy implementation (but not very abstract) would simply hard-code t= he above use case. A more sophisticated implementation would provide a file-monitoring service extension which would allow users to monitor arbitrary files and call a procedure once they change (using inotify, fanotify (and stat - because inotify can overflow, and then you have to scan manually) under the hood). * Another way would be to listen to the signal that elogind sends when a us= er logs in or out, which is (see elogind): return sd_bus_emit_signal( u->manager->bus, "/org/freedesktop/login1", "org.freedesktop.login1.Manager", new_user ? "UserNew" : "UserRemoved", "uo", (uint32_t) u->uid, p); (In my opinion the signal names are misnomers - sounds like accounts are cr= eated resp. deleted, which is not the case O_o) (In the end we have a race between our new service running the per-user shepherd and our user logging out. So also wait until UserRemoved is emitted and kill the corresponding shepherd :P) * Another way would be to use pam's pam_exec for "account" to start shepherd (make sure to switch to the user account first). Race... * In the end, all this is special-casing containerization and I wonder whether it would be better to have an option for guix environment -C which starts a shepherd. Older UNIXes just abused user accounts as good-enough containerization, but that's kinda outdated anyway. Also, are there user accounts (system user accounts, root etc) which don't need a user-specific shepherd? How to specify those? As you can see, that's quite a can of worms - and I would prefer it not to default to any of those and have the user choose which way (if any) to invoke his shepherd. This keeps complexity down. (We can document it in the manual) But can't hurt to have the *abilities* above. What do you think? --Sig_/.x9twJO0vlUo5yTXCXUf1iD Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlvflQcACgkQ5xo1VCww uqUuWwf+NRntpBvy0cE3qjqi17BJeIaW+g6ypjfW0yVvCz8//r49RsmbOty8POEg plr8JM6l39hiUY9avQyUMeLvNGeDKfYhpQoG3Sak2ipmuOXSXjgjKKJmkMdpYCFB GWJnQkuIgSeIjoDArk8olDNdKP1MKlMyTzPFbqxw+pCngdKWT/8aImuodjc8JA16 RNomrT67zd5Zeh56sQxz2lcEzNs0BKHVaIkm5pDGoypU84zNVOztfqVPK44EnIdc BAIShCR80JPO42e2aMkfZ3HWjy+zOa8isLWIAYrosWgSwukha0UrkCvPfOUSHGhL Ue3tAxlBZaP2S33kNZ8aZYgTd9+y4A== =eJ3U -----END PGP SIGNATURE----- --Sig_/.x9twJO0vlUo5yTXCXUf1iD-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 05 02:49:06 2018 Received: (at 33260) by debbugs.gnu.org; 5 Nov 2018 07:49:06 +0000 Received: from localhost ([127.0.0.1]:34541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJZdC-00077A-IE for submit@debbugs.gnu.org; Mon, 05 Nov 2018 02:49:06 -0500 Received: from mx1.riseup.net ([198.252.153.129]:47354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJZdA-000772-PD for 33260@debbugs.gnu.org; Mon, 05 Nov 2018 02:49:05 -0500 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id D41611A0243; Sun, 4 Nov 2018 23:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541404143; bh=fq34wrSYviPpPJiq/5BTpDdA9G37riejlV2JFmmk434=; h=Subject:To:References:From:Date:In-Reply-To:From; b=K/uutonuK7ad49jFuriicXHy6Kpxo+cYgzyrwT8XYkddNGl1+IJsMX2BS+0pxdwNF ghSsjfGBAYQ4Tqvu0YIhLdl5etFfmX+vg1Prqecz2sSA+HFx2sYOWGoQDDiTvRMz95 1Jp1wzLpNdvfKvtWbVPR96bLigxRvQy/ZrknIlFg= X-Riseup-User-ID: 2FFAFF404B4B596D9FB1C82CCD8358BB0AF92095164AF2F5A1D196A5ABBE1C9B Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id DB592E6F88; Sun, 4 Nov 2018 23:49:02 -0800 (PST) Subject: Re: Invocation of per-user shepherd - design needed To: Danny Milosavljevic , 33260@debbugs.gnu.org References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <20181105015535.177655c9@scratchpost.org> From: swedebugia Message-ID: Date: Mon, 5 Nov 2018 08:49:00 +0100 MIME-Version: 1.0 In-Reply-To: <20181105015535.177655c9@scratchpost.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi On 2018-11-05 01:55, Danny Milosavljevic wrote: > Hi, > > this is a known problem in GuixSD (not in shepherd) and I don't think anyone fixed > it yet, snip > > > What do you think? Actually what I was trying to do was to find a status over which services were running (like "$ systemctl") in guixsd I guessed at the commands and found this error by coincidence. # sudo herd status gave me what I wanted Maybe an error to the non-root user such as: "Shepherd is designed to run as root only" would suffice. -- Cheers Swedebugia From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 05 02:58:47 2018 Received: (at 33260) by debbugs.gnu.org; 5 Nov 2018 07:58:48 +0000 Received: from localhost ([127.0.0.1]:34545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJZmZ-0007KN-Gr for submit@debbugs.gnu.org; Mon, 05 Nov 2018 02:58:47 -0500 Received: from mail-io1-f53.google.com ([209.85.166.53]:45420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJZmW-0007K9-Cf for 33260@debbugs.gnu.org; Mon, 05 Nov 2018 02:58:45 -0500 Received: by mail-io1-f53.google.com with SMTP id p83-v6so5802083iod.12 for <33260@debbugs.gnu.org>; Sun, 04 Nov 2018 23:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/52oPmJHypyWMvD0tlpAdifYj9Yqlm72bybkaEXZfoE=; b=aXmX/4c8ZgQX82Ic26kNFf/iAP/AdmZmhUb45qk408onrkagjDg2HaNdVcgNs1nerN eKwjjpGpmDQDETUFGirnXPRcuh3d9PVBP+f8TZ6QAQ4appkrIUXHVbZOA0eRSEv2Jf2G ph/3o5JuLkZjXrmNKDwKZQW9Fn/Teiv9sM8d5XMwX8EwahwzqpB9my8/dH3ov097IXG1 eV+WI9mPOi1avBLiFzYmjcxrR4H5oRA/4PGLhPxw24f7/JeqEKgu3C596h73WC7YyZ13 JY+tCRF9QUVp/9y8Q29g4uGdb3lA8ygA5iPFjaiiZUQSknhfg0z5iAzOQzP5bJpP8AXj 1uJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/52oPmJHypyWMvD0tlpAdifYj9Yqlm72bybkaEXZfoE=; b=PaSzmg95M/6Lt9JXrgr32Xg9G6MU335M77w7YHQVogTteihtK7S8fpC1m/MeTOIdGT UeMLVKehelu7gSC+nlVUxojtb6RP/9msTmYvMH5UURCeXv80pGP4+LwNvrdZoLmddW9M uQ6iNvJUuhlS052Za7rRKNQambC4UVcXNbOcITGHMj+jyjUc0pSG3EZb7mVXmT9AYYtx jjss9ykMrbKriEIcTuQiMrxjpVFkA0dMHS/8x6EY9LuTuIaqIoAWnaGBssGzEN4o4VhT StEGt/VvTbRIbwysKSA9TnmWvsg9DG6lR349odUU0ZVfx/Pg0o5YyhNMmlBewPgd+rs2 w5Xg== X-Gm-Message-State: AGRZ1gIiSDNCfI3ZoC6gnz/b1DPlllReBCXolYXdAaivdyDrSs1QoBpz Z0DePk6TqfachLiA1u18EeZ0MjQRtbfsIT5orQ== X-Google-Smtp-Source: AJdET5fG2LsjS2rvqycHlSYB+ydhFDyEKsY67H4N5w+g9AfbBrRJbAMNqwhYt1fzGPSvITKVhgvpct5h9ne/DHTdqIQ= X-Received: by 2002:a6b:acc5:: with SMTP id v188-v6mr18600527ioe.66.1541404718135; Sun, 04 Nov 2018 23:58:38 -0800 (PST) MIME-Version: 1.0 References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <20181105015535.177655c9@scratchpost.org> In-Reply-To: <20181105015535.177655c9@scratchpost.org> From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Mon, 5 Nov 2018 08:58:26 +0100 Message-ID: Subject: Re: bug#33260: Invocation of per-user shepherd - design needed To: Danny Milosavljevic Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33260 Cc: swedebugia@riseup.net, 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Danny, Danny Milosavljevic ezt =C3=ADrta (id=C5=91pont: 2= 018. nov. 5., H, 2:04): > > Hi, > > this is a known problem in GuixSD (not in shepherd) and I don't think any= one fixed > it yet, because it requires some design (and is kinda harder than ignorin= g the > problem and letting the user choose - see below). > > There is only rudimentary support for distinguishing sessions from users = in GuixSD > (I guess nowadays everyone is using a computer of their own and people do= n't > remember huge shared computers which you would dial into multiple times f= rom > different sites (not necessarily after hanging up the previous connection= ) - > I work with the latter daily so I do remember). > > Shepherd assumes to be run per user (for non-root), not per session. > For the vast majority of tasks-to-be-automated, that is what you want. > > But who starts the per-user shepherd? > > Right now, nobody. > > I manually edited my session startup file (in my case ~/.fluxbox/startup)= to > invoke "shepherd" and expect it to error on subsequent sessions except fo= r the > first one for this user - so only one shepherd per user will actually sta= y running. > > This is a simple way to do it and I prefer it to any more complicated sol= utions - > since it's in the unix spirit of "worse is better" (in this case: non-sar= castic). > > (For a more universal (non-fluxbox, it's too old) way, use ~/.config/auto= start > and put a "shepherd.desktop" file there) > > This assumes that nobody will clean up session processes when the session= ends, > otherwise it will do the wrong thing (i.e. kill the per-user shepherd eve= n though > other sessions of that user still need it). > > The assumption is justified because of the following: > > The right design overall for the system would be to clean up USER process= es > when all sessions of that user ended (this is not the default for elogind= , but > it could be enabled by the logind.conf option "KillUserProcesses"). (Thi= s > would break Screen if not started right away with the session, though) > In any case, the "simple way" above works when KillUserProcesses=3Dno and > also when KillUserProcesses=3Dyes, so for me problem solved ;P > > (Also, traditionally UNIX would kill the controlling (that is, first) pro= cess > that was started in a terminal once that terminal is disconnected (kill v= ia > sending that controlling process SIGHUP). > I don't think that that is a problem here since that controlling process = is > usually the shell, not shepherd). > > There are multiple other ways to handle starting the per-user shepherd, b= ut > they are kinda complicated and all require new GuixSD services: > > * One way would be to monitor /run/user (see elogind for why), wait until= a new > subdirectory appears, and then launch the per-user shepherd (as that user= , > of course). (In the end we have a race between our new service running t= he > per-user shepherd and our user logging out. So also wait until a subdire= ctory > disappears and kill the corresponding per-user shepherd - if it's still t= here :P) > > A very easy implementation (but not very abstract) would simply hard-code= the > above use case. > > A more sophisticated implementation would provide a file-monitoring servi= ce > extension which would allow users to monitor arbitrary files and call a > procedure once they change (using inotify, fanotify (and stat - because > inotify can overflow, and then you have to scan manually) under the hood)= . > > * Another way would be to listen to the signal that elogind sends when a = user > logs in or out, which is (see elogind): > > return sd_bus_emit_signal( > u->manager->bus, > "/org/freedesktop/login1", > "org.freedesktop.login1.Manager", > new_user ? "UserNew" : "UserRemoved", > "uo", (uint32_t) u->uid, p); > > (In my opinion the signal names are misnomers - sounds like accounts are = created > resp. deleted, which is not the case O_o) > (In the end we have a race between our new service running the per-user > shepherd and our user logging out. So also wait until UserRemoved is > emitted and kill the corresponding shepherd :P) > > * Another way would be to use pam's pam_exec for "account" to start sheph= erd > (make sure to switch to the user account first). Race... > > * In the end, all this is special-casing containerization and I wonder > whether it would be better to have an option for guix environment -C > which starts a shepherd. Older UNIXes just abused user accounts > as good-enough containerization, but that's kinda outdated anyway. > > Also, are there user accounts (system user accounts, root etc) which don'= t > need a user-specific shepherd? How to specify those? > > As you can see, that's quite a can of worms - and I would prefer it not > to default to any of those and have the user choose which way (if any) to > invoke his shepherd. This keeps complexity down. (We can document it in > the manual) > But can't hurt to have the *abilities* above. > > What do you think? I think this came up last year at FOSDEM, and it would be really nice to have this. Furthermore it would be nice to have the ability to specify user services even on the os config level. I think one of the usecases discussed there was to provide a per user pinentry service for gpg. WDYT? Also, it seems that some home directory management would be nice, it also c= ame up several times. I believe that configuring behavior like this should ultimately belong there. Also, should this be a per-profile setting instead? Best regards, g_bor From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 05 03:48:05 2018 Received: (at 33260) by debbugs.gnu.org; 5 Nov 2018 08:48:05 +0000 Received: from localhost ([127.0.0.1]:34567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJaYH-0008W4-8f for submit@debbugs.gnu.org; Mon, 05 Nov 2018 03:48:05 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:45004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJaYF-0008Vy-Uj for 33260@debbugs.gnu.org; Mon, 05 Nov 2018 03:48:04 -0500 Received: from localhost (178.112.174.42.wireless.dyn.drei.com [178.112.174.42]) by dd26836.kasserver.com (Postfix) with ESMTPSA id EDA80336038A; Mon, 5 Nov 2018 09:48:01 +0100 (CET) Date: Mon, 5 Nov 2018 09:47:56 +0100 From: Danny Milosavljevic To: swedebugia Subject: Re: Invocation of per-user shepherd - design needed Message-ID: <20181105094726.3af2b9df@scratchpost.org> In-Reply-To: References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <20181105015535.177655c9@scratchpost.org> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Ahe7==Lxksf8R9H=j+1hNV2"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/Ahe7==Lxksf8R9H=j+1hNV2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Mon, 5 Nov 2018 08:49:00 +0100 swedebugia wrote: > # sudo herd status >=20 > gave me what I wanted >=20 > Maybe an error to the non-root user such as: "Shepherd is designed to=20 > run as root only" would suffice. shepherd is not designed to run as root only. That's exactly why it's tryi= ng to connect to the per-user instance: If there's one, it will work fine. If not, you get this error message (we should improve the error message to not include a stack trace - and also maybe add a hint to it about what to do). --Sig_/Ahe7==Lxksf8R9H=j+1hNV2 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlvgA7wACgkQ5xo1VCww uqVevQf/XmyGxlh+vsnkB8ck01h16b6fKEtfcafryM/U4yMERSRdLu4BTFmUmkXo kGLaKcdVuqljjY5qimV1uKgZiRJfmi0l0hBpch/mVJvQquqmrijaUF/Vnp8lpnjE CYUFIOZwlqvmSe4P2mz4yPUH66Rm9Jq6nTCkMePHr3nOT71T5hiKdZ06zFLCf8k8 jDBHhEdOG1XsMzBTm7n43pwDwLUH4saAfLhPidTm8FTWlMq72GDGFVK0KW4QaRvU gISLESGqJEkmdrkaUCZux6YC1KZlGHq3uHDunp3M7Dg+k+FaxT6Fjppr4q1wD/Q+ ydHi460aEhuxJY2yGWfDQsNmwAjfkQ== =dVaZ -----END PGP SIGNATURE----- --Sig_/Ahe7==Lxksf8R9H=j+1hNV2-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 09:03:57 2018 Received: (at 33260) by debbugs.gnu.org; 6 Nov 2018 14:03:57 +0000 Received: from localhost ([127.0.0.1]:36156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK1xV-0006zr-7c for submit@debbugs.gnu.org; Tue, 06 Nov 2018 09:03:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK1xT-0006za-RM for 33260@debbugs.gnu.org; Tue, 06 Nov 2018 09:03:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gK1xI-0003M3-Os for 33260@debbugs.gnu.org; Tue, 06 Nov 2018 09:03:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gK1xI-0003LE-KY; Tue, 06 Nov 2018 09:03:44 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=33216 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gK1xH-00063h-Dy; Tue, 06 Nov 2018 09:03:44 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: swedebugia Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 06 Nov 2018 15:03:41 +0100 In-Reply-To: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> (swedebugia's message of "Sun, 4 Nov 2018 23:34:22 +0100") Message-ID: <877ehq2the.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, swedebugia skribis: > In a VM with GuixSD I did: > > $ shepherd > Backtrace: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3 (primitive= -load "/run/current-system/profile/bin/shephe=E2=80=A6") > In shepherd.scm: > =C2=A0=C2=A0=C2=A0 164:9=C2=A0 2 (main . _) > In shepherd/support.scm: > =C2=A0=C2=A0 396:20=C2=A0 1 (verify-dir _ #:secure? _) > In unknown file: > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (stat "/ru= n/user/30011/shepherd" #) > > ERROR: In procedure stat: > In procedure stat: No such file or directory: "/run/user/30011/shepherd" Danny Milosavljevic skribis: > this is a known problem in GuixSD (not in shepherd) and I don't think any= one fixed > it yet, because it requires some design (and is kinda harder than ignorin= g the > problem and letting the user choose - see below). > > There is only rudimentary support for distinguishing sessions from users = in GuixSD > (I guess nowadays everyone is using a computer of their own and people do= n't > remember huge shared computers which you would dial into multiple times f= rom > different sites (not necessarily after hanging up the previous connection= ) - > I work with the latter daily so I do remember). > > Shepherd assumes to be run per user (for non-root), not per session. > For the vast majority of tasks-to-be-automated, that is what you want. > > But who starts the per-user shepherd? I do! I run =E2=80=98shepherd=E2=80=99 as non-root on GuixSD, and I don=E2= =80=99t have the above file-not-found issue. On GuixSD, /run/user/UID is created as expected, and I suspect it=E2=80=99s the same on most other GNU/Linux distr= os these days. swedebugia, what distribution are you using? On GuixSD, 30011 is a UID that would be allocated to one of the build users, which cannot =E2=80=9Clo= g in=E2=80=9D. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 06 13:26:31 2018 Received: (at 33260) by debbugs.gnu.org; 6 Nov 2018 18:26:31 +0000 Received: from localhost ([127.0.0.1]:37755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK63b-0007YZ-Fh for submit@debbugs.gnu.org; Tue, 06 Nov 2018 13:26:31 -0500 Received: from mx1.riseup.net ([198.252.153.129]:47674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gK63Z-0007YR-Mx for 33260@debbugs.gnu.org; Tue, 06 Nov 2018 13:26:30 -0500 Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id BB4611A0934; Tue, 6 Nov 2018 10:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541528788; bh=THvwrhcIV3P9cJ/Gi46/uRPoX1VsoWwHyz8+wqqH2h8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TdotS8ZtUiLOvZ42VBxzatFebC19P9lyUeHP2eB2V7vDJ7hyiyFRYLp5GdYKsC6Cy NALr8eA5iG7JpAU0utMy6gkRpD1dRvcEjLnrhwRijR8U6vfOWNbma3YTxaUDsC6hFn XhIhd3CS0Bm3lYYnie1r1S+LR2xbRduk6oI2if8s= X-Riseup-User-ID: AD17B953DBE761368FC9F882653A5A6C93C83FA747CCF5B365FC6EDD6675A3E5 Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 9759B64F85; Tue, 6 Nov 2018 10:26:27 -0800 (PST) Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> From: swedebugia Message-ID: <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> Date: Tue, 6 Nov 2018 19:26:24 +0100 MIME-Version: 1.0 In-Reply-To: <877ehq2the.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi :) On 2018-11-06 15:03, Ludovic Courtès wrote: > Hello, > > swedebugia skribis: > >> In a VM with GuixSD I did: >> >> $ shepherd >> Backtrace: >>            3 (primitive-load "/run/current-system/profile/bin/shephe…") >> In shepherd.scm: >>     164:9  2 (main . _) >> In shepherd/support.scm: >>    396:20  1 (verify-dir _ #:secure? _) >> In unknown file: >>            0 (stat "/run/user/30011/shepherd" #) >> >> ERROR: In procedure stat: >> In procedure stat: No such file or directory: "/run/user/30011/shepherd" > Danny Milosavljevic skribis: > >> But who starts the per-user shepherd? > I do! I run ‘shepherd’ as non-root on GuixSD, and I don’t have the > above file-not-found issue. On GuixSD, /run/user/UID is created as > expected, and I suspect it’s the same on most other GNU/Linux distros > these days. > > swedebugia, what distribution are you using? On GuixSD, 30011 is a UID > that would be allocated to one of the build users, which cannot “log in”. GuixSD VM image in Qemu on parabola. sdb@komputilo ~$ guix --version guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76 (v0.15) $ which shepherd /run/current-system/profile/bin/shepherd sdb@komputilo ~$ readlink -f $(which shepherd) /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd $ uname -a Linux komputilo 4.17.3-gnu #1 SMP 1 x86_64 GNU/Linux -- Cheers Swedebugia From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 07 11:37:06 2018 Received: (at 33260) by debbugs.gnu.org; 7 Nov 2018 16:37:06 +0000 Received: from localhost ([127.0.0.1]:39804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKQpE-00046F-I0 for submit@debbugs.gnu.org; Wed, 07 Nov 2018 11:37:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKQpC-00045j-89 for 33260@debbugs.gnu.org; Wed, 07 Nov 2018 11:37:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKQp6-0006Ly-38 for 33260@debbugs.gnu.org; Wed, 07 Nov 2018 11:36:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKQp4-0006Jv-2A; Wed, 07 Nov 2018 11:36:55 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35184 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gKQp3-00045n-8v; Wed, 07 Nov 2018 11:36:53 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: swedebugia Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 07 Nov 2018 17:36:52 +0100 In-Reply-To: <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> (swedebugia's message of "Tue, 6 Nov 2018 19:26:24 +0100") Message-ID: <87o9b0u9nf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, swedebugia skribis: > On 2018-11-06 15:03, Ludovic Court=C3=A8s wrote: [...] >> I do! I run =E2=80=98shepherd=E2=80=99 as non-root on GuixSD, and I don= =E2=80=99t have the >> above file-not-found issue. On GuixSD, /run/user/UID is created as >> expected, and I suspect it=E2=80=99s the same on most other GNU/Linux di= stros >> these days. >> >> swedebugia, what distribution are you using? On GuixSD, 30011 is a UID >> that would be allocated to one of the build users, which cannot =E2=80= =9Clog in=E2=80=9D. > > GuixSD VM image in Qemu on parabola. > > sdb@komputilo ~$ guix --version > guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76 (v0.15) > > $ which shepherd > /run/current-system/profile/bin/shepherd > > sdb@komputilo ~$ readlink -f $(which shepherd) > /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd What does =E2=80=98id=E2=80=99 return? What about: =E2=80=98herd status | = grep logind=E2=80=99? Does /run/user exist? Thanks in advance, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 07 12:13:14 2018 Received: (at 33260) by debbugs.gnu.org; 7 Nov 2018 17:13:14 +0000 Received: from localhost ([127.0.0.1]:39836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKROD-000759-Ng for submit@debbugs.gnu.org; Wed, 07 Nov 2018 12:13:13 -0500 Received: from mx1.riseup.net ([198.252.153.129]:35749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKROB-000750-Dy for 33260@debbugs.gnu.org; Wed, 07 Nov 2018 12:13:12 -0500 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B63EF1A0544; Wed, 7 Nov 2018 09:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541610790; bh=bJ6ojlmRpyqXSLjzJIuwSXuefSZIJDF74ZXLTaIp4DY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=AXTx0BHpaw7f6lhIGfQ063MLz1PvhJNTAgESradaBzuTNJLKLhp0URubXWbjaexbD cg1XAT3emveDlS1f+oj07irGYHoSB0ZqUMf5MtosuFPY6SBBgRlRyPx16EYnySS78N 0WjpZPNNCFHSKxKYOBxA78pXNVKzTwE3uq+bPSnc= X-Riseup-User-ID: 659877630B144301124C9729FDE506536CF64A14985A71228AC27C859AE2C982 Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id A1847E795E; Wed, 7 Nov 2018 09:13:09 -0800 (PST) Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> From: swedebugia Message-ID: Date: Wed, 7 Nov 2018 18:13:07 +0100 MIME-Version: 1.0 In-Reply-To: <87o9b0u9nf.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Output as requested below. On 2018-11-07 17:36, Ludovic Courtès wrote: > Hello, > > swedebugia skribis: > >> On 2018-11-06 15:03, Ludovic Courtès wrote: > [...] > >>> I do! I run ‘shepherd’ as non-root on GuixSD, and I don’t have the >>> above file-not-found issue. On GuixSD, /run/user/UID is created as >>> expected, and I suspect it’s the same on most other GNU/Linux distros >>> these days. >>> >>> swedebugia, what distribution are you using? On GuixSD, 30011 is a UID >>> that would be allocated to one of the build users, which cannot “log in”. >> GuixSD VM image in Qemu on parabola. >> >> sdb@komputilo ~$ guix --version >> guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76 (v0.15) >> >> $ which shepherd >> /run/current-system/profile/bin/shepherd >> >> sdb@komputilo ~$ readlink -f $(which shepherd) >> /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd > What does ‘id’ return? sdb@komputilo ~$ id uid=30011(sdb) gid=998(users) groups=998(users),991(audio),992(video),999(wheel) > What about: ‘herd status | grep logind’? No output sdb@komputilo ~$ sudo herd status |grep logind > Does /run/user exist? No sdb@komputilo ~$ ls -l /run/ total 12 drwxr-xr-x 2 root root 4096 Nov  3 23:31 blkid/ lrwxrwxrwx 1 root root   50 Nov  7 17:26 booted-system -> /gnu/store/lsh1rgl4dkpy3pk1ndckcmd64lmgq4f1-system lrwxrwxrwx 1 root root   50 Nov  7 17:26 current-system -> /gnu/store/lsh1rgl4dkpy3pk1ndckcmd64lmgq4f1-system drwxr-xr-x 2 root root 4096 Nov  7 17:26 setuid-programs/ drwxr-xr-x 6 root root 4096 Nov  7 17:26 udev/ > Thanks in advance, Thank you for taking a look. :) -- Cheers Swedebugia From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 07 13:18:26 2018 Received: (at 33260) by debbugs.gnu.org; 7 Nov 2018 18:18:26 +0000 Received: from localhost ([127.0.0.1]:39862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKSPJ-0000FB-VE for submit@debbugs.gnu.org; Wed, 07 Nov 2018 13:18:26 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:49465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKSPF-0000Ew-E3 for 33260@debbugs.gnu.org; Wed, 07 Nov 2018 13:18:21 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 12D5921903; Wed, 7 Nov 2018 13:18:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 07 Nov 2018 13:18:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=3k8ROTVEo1Myd18D4OKFzd8Dlj zqtBFANmXr3nFpf/0=; b=nSpKmeLzSN5nk2f1X6WQDsaWGCA3+e+Pi6CPqAbFTD /yd9/VyutUA/NC8bxm6bwTmC+quUZSkY2ziOlV/mAuxta1ZilO3ACDCzjbBih+0V n5lE5UmCdS3cdfxmmY3iqkjGGVviICndGUHFVSHsOGG3yj+87a/Z+YsFRL6JFJW1 XWuWPjTSvXrUkOsV9VdSOTaEAk1nH5Rg9Br65d7mHiQ+9GOj/m54NRsenN5McFeA SNVx08b3BaRO1pA/TY5pMxImTOgCGczzPelOlNY36eNtLNyr/9CIXSKQJO6CqNcV ZMTYxWy3OCTeUWyO+U68GQr6zl56a92IhFKoQBSrSLUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3k8ROT VEo1Myd18D4OKFzd8DljzqtBFANmXr3nFpf/0=; b=AZu8bnHuF93YxyVHO571Fo aIz6GL2oSvLW2/eMTv8pojxnSjoK4tbRO9XPVNKk/g5dCsCTfd/swCR38DmhzhAg 5fSlH0JQ7YlTWbAyaMhvHgnEIUTYa3BvDxdjzdHpU/DTSgfeoLEh6VxpgTKM+K1I +P1Qe7V0f1nD+3BoSRZvfcprPDN+KlsHFovauKjTJTe8mReB0/FERmId6yW7fB3U ZLfL0vH2sqtnVSAsmamBgYCMFD8ia9sUnXPV/CwxUZkdOaZtVJuZlO4/opETk6L3 GurBlUrANVdkcTPL6kJY2O4qqhUlKJ2lSxd94EPl/zSEBBvq5POdXWq9kyD2f1BQ == X-ME-Sender: X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 2183CE4430; Wed, 7 Nov 2018 13:18:15 -0500 (EST) From: Marius Bakke To: swedebugia , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd In-Reply-To: References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> User-Agent: Notmuch/0.28 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Wed, 07 Nov 2018 19:18:12 +0100 Message-ID: <87muqkzr8b.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable swedebugia writes: > Hi > > Output as requested below. > > On 2018-11-07 17:36, Ludovic Court=C3=A8s wrote: >> Hello, >> >> swedebugia skribis: >> >>> On 2018-11-06 15:03, Ludovic Court=C3=A8s wrote: >> [...] >> >>>> I do! I run =E2=80=98shepherd=E2=80=99 as non-root on GuixSD, and I d= on=E2=80=99t have the >>>> above file-not-found issue. On GuixSD, /run/user/UID is created as >>>> expected, and I suspect it=E2=80=99s the same on most other GNU/Linux = distros >>>> these days. >>>> >>>> swedebugia, what distribution are you using? On GuixSD, 30011 is a UID >>>> that would be allocated to one of the build users, which cannot =E2=80= =9Clog in=E2=80=9D. >>> GuixSD VM image in Qemu on parabola. >>> >>> sdb@komputilo ~$ guix --version >>> guix (GNU Guix) 1f44934fb6e2cefccbecd4fa347025349fa9ff76 (v0.15) >>> >>> $ which shepherd >>> /run/current-system/profile/bin/shepherd >>> >>> sdb@komputilo ~$ readlink -f $(which shepherd) >>> /gnu/store/fwc1nkcc0hfyr1d9snpbvfss4pz4ycrw-shepherd-0.4.0/bin/shepherd >> What does =E2=80=98id=E2=80=99 return? > sdb@komputilo ~$ id > uid=3D30011(sdb) gid=3D998(users)=20 > groups=3D998(users),991(audio),992(video),999(wheel) > >> What about: =E2=80=98herd status | grep logind=E2=80=99? > > No output > > sdb@komputilo ~$ sudo herd status |grep logind > >> Does /run/user exist? > > No If you add (elogind-service) to your system configuration, Shepherd should work out of the box. Alternatively, I do this on a minimal system: =2D-8<---------------cut here---------------start------------->8--- # Shepherd requires that this variable is set unless logind is present. export XDG_RUNTIME_DIR=3D"${HOME}/.local/run" # ...and does not clean up its own socket after use. rm -f "$XDG_RUNTIME_DIR/shepherd/socket" # Now we can start it. shepherd & =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlvjLGQACgkQoqBt8qM6 VPrf3QgApeAxHeWlBffyZEFq/zywqoRkDqUyT0pPc+RxGtguT7P+A3T+R9Z+QPO7 lz9wSXvmA2MQvDbrM9FHhcjXOJaZ+/kKYHcnRaX+pc2g4UD1OSmS+H+ZXut/EHZn wVOx8Ld2CRg9yog35X4Krej+c5cMOHzx0+k3BmW+GSSFXz6tWrMArQOZEf+mE5Ab H6sk+cMFIn4ujQUo4EG8hBN02BbUjDV3Me0/e2qOXYEksNrUmS8uhUDbma7VOxWq tPI7FFDPD2NLRRUa204Yz87A7cFLoYniPaziOafi8mQOIafbp6d/o6eIuEIRR+Q9 XeJ111hcUktZ/g3YWuochxcbnL3OKw== =qO2G -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 08 03:45:56 2018 Received: (at 33260) by debbugs.gnu.org; 8 Nov 2018 08:45:56 +0000 Received: from localhost ([127.0.0.1]:40237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKfwp-00008K-UP for submit@debbugs.gnu.org; Thu, 08 Nov 2018 03:45:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gKfwn-000085-Ey for 33260@debbugs.gnu.org; Thu, 08 Nov 2018 03:45:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKfwg-0001aX-AC for 33260@debbugs.gnu.org; Thu, 08 Nov 2018 03:45:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKfwg-0001aP-6h; Thu, 08 Nov 2018 03:45:46 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=58916 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gKfwf-0002c6-Kd; Thu, 08 Nov 2018 03:45:46 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Marius Bakke Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 08 Nov 2018 09:45:43 +0100 In-Reply-To: <87muqkzr8b.fsf@fastmail.com> (Marius Bakke's message of "Wed, 07 Nov 2018 19:18:12 +0100") Message-ID: <87d0rg6jpk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33260 Cc: swedebugia , 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Marius Bakke skribis: >>> What about: =E2=80=98herd status | grep logind=E2=80=99? >> >> No output >> >> sdb@komputilo ~$ sudo herd status |grep logind >> >>> Does /run/user exist? >> >> No > > If you add (elogind-service) to your system configuration, Shepherd > should work out of the box. Indeed. The Shepherd implicitly depends on elogind/systemd here. I suppose we should at least clarify this in the manual. Thoughts? > Alternatively, I do this on a minimal system: > > # Shepherd requires that this variable is set unless logind is present. > export XDG_RUNTIME_DIR=3D"${HOME}/.local/run" > > # ...and does not clean up its own socket after use. > rm -f "$XDG_RUNTIME_DIR/shepherd/socket" > > # Now we can start it. > shepherd & Neat. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 14 14:38:01 2018 Received: (at 33260) by debbugs.gnu.org; 14 Nov 2018 19:38:01 +0000 Received: from localhost ([127.0.0.1]:52565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN0zA-0002Z9-Pw for submit@debbugs.gnu.org; Wed, 14 Nov 2018 14:38:01 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:58727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN0z8-0002Yw-JE for 33260@debbugs.gnu.org; Wed, 14 Nov 2018 14:37:59 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 53F36C82; Wed, 14 Nov 2018 14:37:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 14 Nov 2018 14:37:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=37AVUuCcIuKwT6AinvuJ/0lqSv 6jYqzFP4j9ku5h9eI=; b=a16D5cfx9BLdG2/8nyswqoJdVGyIbT/fcUuQ6g+KJW OUCi6q2TMWBfTvzaYHWOooz/6Y4QFYfu7/vL497HZ2AhSLzUJSZSPziILhKMlf5s Ko14T4PzgumZFeaVxvQO6ZoeK5jzikKPfcvD0rc6CJLSsMri7S3cMFuPU77QZ0ov MknTm2TeJDeRKbdDaUgEyspB6I07l8tOJbbxqWnOJXedlXQvL7QTnBuofAja9pnK FUvdFosJvzGa+hXFPGsfwSYb+Ua9DenL1grH/7MQPXzfDGInpML9wFg9dVoVMuLx GF+qOfsAkR0tRw5Xo6AfWX8AHg9/zUD7Gerj462xp/yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=37AVUu CcIuKwT6AinvuJ/0lqSv6jYqzFP4j9ku5h9eI=; b=GRzkY/iN2DK+KZQDB18fOf 9iyOpS1vA/DWmMOQZm+oy+8cGqWS22ry/Fqa1MVm5h39hHuhfmIjU7RmqIzI2Xbm TbDjPanyz9PCrIli5XRlMTB0RJXqX1Enz+vHeilzF9ZCUHd59d4iDAhNmO5qdoup cT3ioKkap6osZ5ZZ/ohWeQlqXmKZEpLS3jfFIFgcGQTT+iN0WBvySRpEgUhfkuti /QxN44sl1Fhk0/2mmYwCIMVGWdrqp1q5TpROnsOBopq76R5JNPpCthkKxQ0uQMO1 qiFi03Mlk/Z5s1JNzWNBYJ+lflsMpOZ0pxcszrqOzJABsHA6B6hDGCifmVoCk1iA == X-ME-Sender: X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 34B42102EA; Wed, 14 Nov 2018 14:37:51 -0500 (EST) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd In-Reply-To: <87d0rg6jpk.fsf@gnu.org> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> <87d0rg6jpk.fsf@gnu.org> User-Agent: Notmuch/0.28 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Wed, 14 Nov 2018 20:37:49 +0100 Message-ID: <87y39v4fhu.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: swedebugia , 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello, > > Marius Bakke skribis: >>>> What about: =E2=80=98herd status | grep logind=E2=80=99? >>> >>> No output >>> >>> sdb@komputilo ~$ sudo herd status |grep logind >>> >>>> Does /run/user exist? >>> >>> No >> >> If you add (elogind-service) to your system configuration, Shepherd >> should work out of the box. > > Indeed. The Shepherd implicitly depends on elogind/systemd here. > > I suppose we should at least clarify this in the manual. Thoughts? It is kind of documented under the '--socket' option of Shepherd: https://www.gnu.org/software/shepherd/manual/shepherd.html Perhaps a footnote to the /run/user/uid part could be added along these lines: "On GNU/Linux systems, this directory is typically created by a login manager such as elogind or systemd." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlvseY0ACgkQoqBt8qM6 VPpYcQf9FVx8pOZw1eQhHhGQwV/o6pie8eui6Owu7UUGLTWJN6sCRUVyKG2NzXZZ FnDTk0U8mo9BsfWL3DUhKf0uLAJX5pRTif4BvCbAjXtZnUwJWKUnGFWW76gRiyNt 0cXfHdg2YO3FVcj+lV+3/49yrJ8QLaNVwKg219Jjg7kUMTMUIUtvL7Lqvrww2U// 9SKfEbtqaszZN5biLcF3oKI9VGQnT3uvkoNztKeTNU5/PkuFkcK3ORcPWK7V2aGZ 4kpG6WgZi7lfAvoAP1/7I/5GdjKNu6QkxVVmbSRGMtD3xHQMNkNXYDadhNnwAqch ZJwYdAjS1mpWXXvz0WrAK4qK9PlZrg== =vAqj -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 14 15:55:20 2018 Received: (at 33260) by debbugs.gnu.org; 14 Nov 2018 20:55:20 +0000 Received: from localhost ([127.0.0.1]:52628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN2C0-0004TJ-2X for submit@debbugs.gnu.org; Wed, 14 Nov 2018 15:55:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN2Bz-0004T5-0L for 33260@debbugs.gnu.org; Wed, 14 Nov 2018 15:55:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gN2Bs-0006oY-VW for 33260@debbugs.gnu.org; Wed, 14 Nov 2018 15:55:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gN2Bs-0006oR-Sd; Wed, 14 Nov 2018 15:55:12 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39162 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gN2Bs-0005Nz-Eg; Wed, 14 Nov 2018 15:55:12 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Marius Bakke Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> <87d0rg6jpk.fsf@gnu.org> <87y39v4fhu.fsf@fastmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 14 Nov 2018 21:55:11 +0100 In-Reply-To: <87y39v4fhu.fsf@fastmail.com> (Marius Bakke's message of "Wed, 14 Nov 2018 20:37:49 +0100") Message-ID: <878t1vcrbk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33260 Cc: swedebugia , 33260@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Marius Bakke skribis: > It is kind of documented under the '--socket' option of Shepherd: > > https://www.gnu.org/software/shepherd/manual/shepherd.html > > Perhaps a footnote to the /run/user/uid part could be added along these > lines: > > "On GNU/Linux systems, this directory is typically created by a login > manager such as elogind or systemd." I did that in Shepherd commit 02ff984f78efbc78509a8a2c22c84c3574bf4419. I suppose we can consider the bug closed? Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 14 16:29:28 2018 Received: (at 33260-done) by debbugs.gnu.org; 14 Nov 2018 21:29:28 +0000 Received: from localhost ([127.0.0.1]:52651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN2j1-0005OH-5k for submit@debbugs.gnu.org; Wed, 14 Nov 2018 16:29:28 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gN2iy-0005NY-Lj for 33260-done@debbugs.gnu.org; Wed, 14 Nov 2018 16:29:25 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AE890CFA; Wed, 14 Nov 2018 16:29:18 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 14 Nov 2018 16:29:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=/bs/735xCPnQS0BzJWgHxofwSm +diLndWaEbGIkZ/rg=; b=nugmCWdUP5bGKu4UhxNwp4ELrlJeIkvLAx7qyzRVpF qWaaAmVsEUSbuwRRbfrGNw2zYof+cDfxEbwLk78plHeHsKkPCnPBkdy1iUkPxQYW bcqwST6mlYy5VfPCr1ZnQUhBB2qNwmSZYYZJSC95wPBOwumFVNyc8DKubWEEDH/6 wcFvh32n1wWS+s7R74FKwv1a4pB6wKxjSV5p7F4tp6IwSMdBlvSmzihbeEJoMzSS miqWrqOqe3hwUKAwp8xCxw/u435RrRfR/nAfO0rjFEDKPj2CASXl7EN3EU1xds0q LcWYMgmwfPwt9+oYK1Rb0XB/Qv0Lisjc2h9Xy66fSadQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=/bs/73 5xCPnQS0BzJWgHxofwSm+diLndWaEbGIkZ/rg=; b=ju3iwhHdGCa6DZMB5iYM6u 1V2dqMEvOZzCSmTP/AogaTRg47snVHJbsI/FQAnvQ0HbTvBjCl3//hzhpP/0ra/a e7prmvNUYzxTgUzawlk77rKkuZPs+uQqKCjSqFSEw7bVyxzTns6VMHix7/FlAhXq D/rqUuQk8xjmRnTxqLRS18LXYw9v+44YoBjIZpWW9Odc7WH0cle4TN9GBk7jz1yj kaFyaKpC9tjg1WIuGWmynP0/1fu2Mk6hb8OsxuKjFyihNnqgU3j3DK9Zzx25JR5o f4tVqfj/bRtItNVI19OaF7jT0KJj4rFwE/PVfJ9H69alfVUs7ZZIZXIgSXHjZnpg == X-ME-Sender: X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 659C7102FF; Wed, 14 Nov 2018 16:29:17 -0500 (EST) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd In-Reply-To: <878t1vcrbk.fsf@gnu.org> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> <87d0rg6jpk.fsf@gnu.org> <87y39v4fhu.fsf@fastmail.com> <878t1vcrbk.fsf@gnu.org> User-Agent: Notmuch/0.28 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Wed, 14 Nov 2018 22:29:15 +0100 Message-ID: <87sh034ac4.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260-done Cc: swedebugia , 33260-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello, > > Marius Bakke skribis: > >> It is kind of documented under the '--socket' option of Shepherd: >> >> https://www.gnu.org/software/shepherd/manual/shepherd.html >> >> Perhaps a footnote to the /run/user/uid part could be added along these >> lines: >> >> "On GNU/Linux systems, this directory is typically created by a login >> manager such as elogind or systemd." > > I did that in Shepherd commit 02ff984f78efbc78509a8a2c22c84c3574bf4419. > I suppose we can consider the bug closed? That was fast, thanks! LGTM, closing the issue. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlvsk6sACgkQoqBt8qM6 VPqINAf/XNYsJkWtLWPCofyy8oxetfSmnvY8JvP7+x52hVVaf0ULKOib9XEzmiQv I5kTUQwgZnwq1hEBPW3xKBmlBfu7pcqc9xi+pj3R3ulu5sns/0F4IwVWK9a7SXUt MeGPcudjyywjetWpfiRzWgPb7qIdicoPHY1QdF/BYkjO1eLUMO5bsTRScgv29XED 16vnEdoM2TNPdt4VcmxepDu7MRhAbE20Wn+60xrL+lwo8AkipvnOe1cN+nrS91OL tGfgiWyFQIZ2/NZ/R/bI8074sLAzHOFIrEPz75//rRiXmHjBiyBXm0RWdJJwurxB fuVR2hgeZ7oKGKYHNCKVK6I6ysWrog== =rlRq -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 16 09:28:04 2018 Received: (at 33260) by debbugs.gnu.org; 16 Nov 2018 14:28:04 +0000 Received: from localhost ([127.0.0.1]:54907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNf6K-0001sC-AR for submit@debbugs.gnu.org; Fri, 16 Nov 2018 09:28:04 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:49332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNf6I-0001s1-HZ for 33260@debbugs.gnu.org; Fri, 16 Nov 2018 09:28:03 -0500 Received: from localhost (unknown [193.170.94.190]) by dd26836.kasserver.com (Postfix) with ESMTPSA id D2EC43363E65; Fri, 16 Nov 2018 15:28:00 +0100 (CET) Date: Fri, 16 Nov 2018 15:27:54 +0100 From: Danny Milosavljevic To: Marius Bakke Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd Message-ID: <20181116152754.13929b29@scratchpost.org> In-Reply-To: <87y39v4fhu.fsf@fastmail.com> References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> <87d0rg6jpk.fsf@gnu.org> <87y39v4fhu.fsf@fastmail.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/j=YFtAdpSBjxW69QLtGN./t"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org, Ludovic =?ISO-8859-1?Q?Court=E8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/j=YFtAdpSBjxW69QLtGN./t Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > It is kind of documented under the '--socket' option of Shepherd: >=20 > https://www.gnu.org/software/shepherd/manual/shepherd.html Shouldn't it be: Receive further commands on the socket special file file. If this option is= not specified, localstatedir/run/shepherd/socket is taken when running as = root; when running as an unprivileged user, shepherd listens to /run/user/u= id/shepherd/socket, where uid is the user=E2=80=99s numerical ID, or to $XD= G_RUNTIME_DIR/shepherd/socket when the XDG_RUNTIME_DIR environment variable= is defined.=20 Rather than: >Receive further commands on the socket special file file. If this option i= s not specified, localstatedir/run/shepherd/socket is taken when running as= root; when running as an unprivileged user, shepherd listens to /run/user/= uid/shepherd, where uid is the user=E2=80=99s numerical ID, or to $XDG_RUNT= IME_DIR/shepherd when the XDG_RUNTIME_DIR environment variable is defined.= =20 --Sig_/j=YFtAdpSBjxW69QLtGN./t Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlvu0+sACgkQ5xo1VCww uqXZlwgAi6Kr2IGZLEfp6nzdcq+DHc5DXRTtK2mnaKGwmZLPQs0Ohuxjd1lUuyaQ Pqkb8yJeR4kzI120wSRf2VHPk1q0CEmRuxvMuFckoFK9MmVmQuc2cH4BOP68gQj1 027aKaIW0Etb/zl1BsuA6Ow8y9i548FuNRKgE+FEgqPiiL30D2fVR0w+RHac2gjh NAhSubgnpfpY7ltAM4aRzZodBngnhVXG0o3li4J0q6i1JRNL0XQCeSiqm5UuRiNG dOTar8wy2sxsPQsxH5KpotAl+nqVP8L31CzbeuU3y7qCfJQUCzo4X9Tn4F3hMn8G 8VUJFBLWCAM2eeRGP/HKihECBRwM5w== =Fsmi -----END PGP SIGNATURE----- --Sig_/j=YFtAdpSBjxW69QLtGN./t-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 16 11:55:56 2018 Received: (at 33260) by debbugs.gnu.org; 16 Nov 2018 16:55:56 +0000 Received: from localhost ([127.0.0.1]:56711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNhPQ-0007wJ-18 for submit@debbugs.gnu.org; Fri, 16 Nov 2018 11:55:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNhPP-0007w7-0A for 33260@debbugs.gnu.org; Fri, 16 Nov 2018 11:55:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNhPJ-0002c6-6j for 33260@debbugs.gnu.org; Fri, 16 Nov 2018 11:55:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNhPJ-0002c0-3e; Fri, 16 Nov 2018 11:55:49 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40430 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gNhPH-0001bN-KE; Fri, 16 Nov 2018 11:55:48 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: bug#33260: [Shepherd] ERROR: In procedure stat: No such file or directory: "/run/user/30011/shepherd References: <34806e19-072a-ce32-3a23-78e78f59b719@riseup.net> <877ehq2the.fsf@gnu.org> <55e1a1ec-477a-f370-6ede-70872a8a6746@riseup.net> <87o9b0u9nf.fsf@gnu.org> <87muqkzr8b.fsf@fastmail.com> <87d0rg6jpk.fsf@gnu.org> <87y39v4fhu.fsf@fastmail.com> <20181116152754.13929b29@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 16 Nov 2018 17:55:45 +0100 In-Reply-To: <20181116152754.13929b29@scratchpost.org> (Danny Milosavljevic's message of "Fri, 16 Nov 2018 15:27:54 +0100") Message-ID: <87bm6pvu5q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33260 Cc: 33260@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Danny Milosavljevic skribis: >> It is kind of documented under the '--socket' option of Shepherd: >>=20 >> https://www.gnu.org/software/shepherd/manual/shepherd.html > > Shouldn't it be: > > Receive further commands on the socket special file file. If this option = is not specified, localstatedir/run/shepherd/socket is taken when running a= s root; when running as an unprivileged user, shepherd listens to /run/user= /uid/shepherd/socket, where uid is the user=E2=80=99s numerical ID, or to $= XDG_RUNTIME_DIR/shepherd/socket when the XDG_RUNTIME_DIR environment variab= le is defined.=20 Right, fixed in Shepherd commit 37e2e3b4d749c3eb28c4d8552875087387212407. Thanks! Ludo'. From unknown Thu Sep 11 11:56:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Dec 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator