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 7895 invoked from network); 29 Sep 2022 12:22:18 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 29 Sep 2022 12:22:18 -0000 Received: (qmail 575 invoked by uid 89); 29 Sep 2022 12:22:40 -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 566 invoked from network); 29 Sep 2022 12:22:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date; bh=H1/TFlMdZVKnVHHsNl5lShf5F4fbOP+4ae0k4bk/rpY=; b=JzFvtSBmBtmdAFufV5Q+otvJX0sFyJuTg7yYz5dHBmXDm3iPeuxmVtjcSDjp+gbgcV uvoYBc9qvmdzASRdDcPZrw562JUX7wUbFObBgpbruMW7LHF0h9b32hmSY6UMuU5XA06z el2fV74M0aGH6EQ58T12S6vHvlEVX6+YtFR00/SJwxdcwySJ7Iobygb3iaiDizlWt3oA 7GdiGYGbMEIcn/3Zd+KymOR+wCsJFdfUdwg7mohXk2By8L/u0RZ+QrAJHP/uqjszEzmj GWDkElBRs/xWcW0QNFdzRLRz6cZGXYTZU1n1Oqqi+Fh3ohIiDMzzdr+qDT6FdvEeo0Qq ZPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date; bh=H1/TFlMdZVKnVHHsNl5lShf5F4fbOP+4ae0k4bk/rpY=; b=CwLfKRSwxD7K6GLkPqEM4tK9O/Ceav615sUT2LEQhWhvycOJknM3/N70T8FWJ0B7YG 7IRktwJopsxg6+d8z1Q4mBxWjstPs9E6rJ/ywjIQQ5UbrnWOeXPHPAYGxRz/TQqUAbmd 7OnYS3RM1Bmokcmwgq2vKQonJ5Od5XpT4g8z1SvwTlBTVFcGvSEmM5g7T2lg2HIrqo9Q ujQYVc/lmHxCkEfkxapKULZnH8qKv7T1Rf9w+hKYPvZgRIBvRfqchwrqURIn150zCGZM 9Ftd7Q/4ae9bjZnh2syeRB3bgvMaYaHElo5NS3bav5dxh0N5/nVhW4w4usm9umYH03oY KapA== X-Gm-Message-State: ACrzQf36fOG1BKWpJ4T059djdysNKqxrWiCFL6o/9GwPzVR9aQ4t58qn AXTUj/axJmlaZpKckxlicrI= X-Google-Smtp-Source: AMsMyM7guN5bPaxfU4zNxAZmRz1rBgjczkBkZWw0gMlJrWNWAH5kqtlthzf1k/+/v/DsrK4gWR9ZVw== X-Received: by 2002:a05:6a00:2341:b0:546:e236:497f with SMTP id j1-20020a056a00234100b00546e236497fmr3321804pfj.32.1664454131679; Thu, 29 Sep 2022 05:22:11 -0700 (PDT) References: User-agent: mu4e 1.8.5; emacs 28.2 From: Alexis To: =?utf-8?Q?Jo=C3=A3o?= Pedro Malhado Cc: Guillermo , supervision@list.skarnet.org Subject: Re: gpg-agent runit run script Date: Thu, 29 Sep 2022 22:12:49 +1000 In-reply-to: Message-ID: <87pmfegykh.fsf@ada> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jo=C3=A3o Pedro Malhado writes: > The Void linux manual shows gpg-agent running as an example, but=20 > they > don't show > the run script, so I don't know how they set it up. > https://docs.voidlinux.org/config/services/user-services.html Duncaen's run script for gpg-agent is here: https://github.com/Duncaen/dotfiles/blob/master/sv/gpg-agent/run It's actually an execline script that makes use of=20 s6-ipcserver-socketbinder. Also note that the script calls=20 gpg-agent with `--supervise`. > This is a pity as gpg-agent is a long running process which is=20 > the > sort of thing > you would want to run under supervision. Well, the typical reason we want to run something under=20 supervision is to ensure it's up, because (a) there are processes=20 relying on it being up, and (b) those processes aren't themselves=20 able to start the relevant process. But this isn't the case with=20 gpg-agent: the main programs that utilise it know how to start it=20 themselves if necessary, so it doesn't matter if a gpg-agent=20 process exits abnormally, as a new one will get created when=20 required. Alexis.