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.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21296 invoked from network); 19 Oct 2021 07:41:30 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2021 07:41:30 -0000 Received: (qmail 11624 invoked by uid 89); 19 Oct 2021 07:41:56 -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 11617 invoked from network); 19 Oct 2021 07:41:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=malat-biz.20210112.gappssmtp.com; s=20210112; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ELL6Eul2XfSHjAs8wIwDfUo6aQRCUyQWtZqss8ujbRU=; b=slMNcHi6+BIlYHHXwiNxOQyufpg0/c+duQQ+5NpCwHiJmAOcST8QnSitPO1zDKKe88 al1PiXJCOLSKlkZCsP2PNRmyVSm8MlWvXX8RfpRyjb7tWzr/1TpDnN01OULCV728lqKc CDBtY5KB70EgmQsC+be5gqI+VqKIqBEjj5lt3mFOVnpZqlvG1cafUHoVsa3D5tWQWem4 8TS2rMk9VVbbfh+T8NoDLUHpoTeJlsMDGihvvpygNS84z15QvbCCvoVU9gegIAP+ASxu +1rDJISl8XGPl5DBtLAD1Xo/2828QiNEasVYHvLWczw917bmPeObQ0oStfVSDA2gGjHm zheQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ELL6Eul2XfSHjAs8wIwDfUo6aQRCUyQWtZqss8ujbRU=; b=Lsz3aghnc8FuYBJGr/C4PnLU9tnpCdJWyvCVacpzLaYOM48lF3kPhy8m+ud+NiclYU 6kW3Fu24Nn0g8SU6R3BT1ufMltmS7dNzrSMwNidjpFXZC9U9xxIeokwthPC5LYiuag9X Q+b4rLfSYTdUiZgGFu8JInB0nffBmarerASRiglWkUl0u69iINtZYkAxvEFEyBiVB46O QTNIqm6vuz4I4nue6WfqgPX5DoRqVW+r13bjNKdJVZSGVbPqdBhiCkD/AV/UD2T69Xll gtpo1BuX9qEaVvDsV55siPkJBR1E72KYDTlXOaYMoh2SqrwZ8oUhLGI/KczBA9iS5MYf Kxdg== X-Gm-Message-State: AOAM5306bDu39zgokLlaN8e4kFxnS8rXhjzaWXhaERD0lxiOx4QPFdMf jMyK5S0zcS/f2h70a4al8sQhcnULyg8= X-Google-Smtp-Source: ABdhPJxfWqziDQGZZDjFI8sPlOK2IAbDz0AmcHQjAQv1UxlGkd+HfN0+nFGl7iWobhCzvSyErZFUsQ== X-Received: by 2002:a5d:698a:: with SMTP id g10mr42006778wru.14.1634629288698; Tue, 19 Oct 2021 00:41:28 -0700 (PDT) Date: Tue, 19 Oct 2021 09:41:19 +0200 From: Petr Malat To: supervision@list.skarnet.org Subject: Re: Service watchdog Message-ID: References: <3A0AF46B-BB65-4D92-92F5-795FA3A5794D@umbrellix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3A0AF46B-BB65-4D92-92F5-795FA3A5794D@umbrellix.net> Yes, in my usecase this would be used at the place where sd_notify() is used if the service runs under systemd. Then periodically executed watchdog could check the service makes progress and react if it doesn't. The question is how to implement the watchdog then - it could be either a global service or another executable in service directory, which would be started periodically by runsv. On Tue, Oct 19, 2021 at 07:24:38AM +0000, Ellenor Bjornsdottir wrote: > Is this some genre of continuous readiness notification, or so? > > On 19 October 2021 07:20:41 UTC, Petr Malat wrote: > >Hi, > >I'm using the busybox implementation of runit to manage services and I > >miss some kind of a watchdog in runsv. I though about extending > >supervise/control pipe by a status command which would allow to publish > >a status, for example 's Running'. Runsv would then append a monotonic > >timestamp when it was received and the passed string to its argv[0] > >making it visible in the process listing. This could be used by "check" > >to check the service is up and also by watchdog to see it made some > >progress since the last run. > >Any opinions on that? > >BR, > > Petr > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity.