From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15429 invoked from network); 28 Sep 2022 18:46:02 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 28 Sep 2022 18:46:02 -0000 Received: (qmail 15471 invoked by uid 89); 28 Sep 2022 18:46:25 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 15464 invoked from network); 28 Sep 2022 18:46:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=45NyjxefzGJDD/ttG9CPzpsxwmkIfE6bxxuZcKBcQ1E=; b=HoZDm1kNLrZOsm7eup2lMBYInsAf0ooqvahR2mVPrfqRAsiFxsWcIboNEfTdOe9pbg FuGrWIehduAu68woD8Lc4xtO1AoZmP5X12Vxlcov2RqvlmudVJr6qo5fMRJTfqHzvcZo tgDSciX6aPM4q6GKmB6Ko7TTY0Ybj4qPJ0khqTFtoWdwffPS+tKR1MqVjQGIAdKyZocJ Sx/3luXYihUPsVSef5n8alw3bJmRaFNqHvhtZozvurSxDGVTs5Svwe37fvRsapNMO0XV D1xR5blV1mHEl+Prw6YVPiehne3eSWsKSXP/tPzqhis5WVIsEGseCP77dhbaVt7AkNFy I+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=45NyjxefzGJDD/ttG9CPzpsxwmkIfE6bxxuZcKBcQ1E=; b=IABvwwZLGKwdP+9E8qKBhr64mXfgeXXSxX2L/mdAjQ5fCbitUZHioAmbd0ITPVWSWR ApUOK/ZUPm6QC/8joToBvNBHKK2JXeKFPG1O5o9PIo//as1MxqG/FD165PgdcWj0Lpv4 5vSwZd1mO1EMI7MITej2DhlAaTwK19vmOmECF9R2lHumoi/YSYnNT0dWwBOslBEDSSXF T/4nAGHlzPNex+yZXlpiWVxIwf/J5jwVOgYkjWOZ+bKMW6o0T+oln+WeHWcMKwsb3/0L Gg+iiRcegXDa5Rqn8+ojIl3fMieyVppaE+Zdf/qoQ7I7S+hNmxljOU8USvff/DZpR2Aj jb3g== X-Gm-Message-State: ACrzQf3fDOnW201WOYIjUnzcBOY1/2xXNGMVctmvNWFmX/zdjK4ceGPj NFcuJ2M7PK+E34Wci22BPF+hJLFi0J06lsBb5G6YW6osSeg= X-Google-Smtp-Source: AMsMyM5wrIN2AXVTl66l7CK0vngfyU2JVLqoSuL+dV64/z5kNbVS5xeynqG/Lwk+hYUIux2+Wv2UDLG3uFAzI2PDndY= X-Received: by 2002:a6b:b28b:0:b0:6a1:eb9e:bf62 with SMTP id b133-20020a6bb28b000000b006a1eb9ebf62mr14471979iof.87.1664390756350; Wed, 28 Sep 2022 11:45:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Guillermo Date: Wed, 28 Sep 2022 15:46:01 -0300 Message-ID: Subject: Re: gpg-agent runit run script To: Supervision Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mar, 20 sept 2022 a las 18:51, Jo=C3=A3o escribi=C3=B3: > > I would like to have gpg-agent running under runit supervision on a user > runsvdir, but I have been unable to write a run script that works. > Would anyone have an example run script for gpg-agent, or be able to offe= r any > pointers? As already suggested, gpg-agent's --supervised command is probably the closest thing that would do what you want, but in that case, gpg-agent will: * expect to have a properly set up environment, which runit's 'chpst -e' could do. This includes variable GPG_TTY, which should contain the name of a valid terminal that the supervision tree would have to make available. * expect to receive a bound and listening UNIX domain socket as file descriptor 3, which runit tools alone can't do (but s6-ipcserver-socketbinder from s6 can). Then, also as already mentioned, this command has been deprecated since GnuPG 2.3.6, so, in my opinion, it's better to just have gpg-agent started by other GnuPG programs, as the manual says. G.