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=-4.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13650 invoked from network); 23 Sep 2022 07:29:42 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 23 Sep 2022 07:29:42 -0000 Received: (qmail 23262 invoked by uid 89); 23 Sep 2022 07:30:07 -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 23255 invoked from network); 23 Sep 2022 07:30:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fourc.eu; s=google; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=XsMip2KEeKrlR4gZNt0Eprmby47gLuViRdanfaZMBbc=; b=M774UZZX1ZilRW5XtbQvgfkeT7KwpzfngB3O4yzRR2DOEbSWlN6jOac7lu/pctsiAY j+aY7yzyVjphbbjHbQ0Cs5FAyDEkMrdwmqzDRigoQDUOz9r4nlCz1N6kWU0nxDPE9ZTu +gQj61pUzPtHDcJl1dHE25XwsThBV1iVKrfxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=XsMip2KEeKrlR4gZNt0Eprmby47gLuViRdanfaZMBbc=; b=WWU7yMtxMP/3VnrzUawTasyRGP/QxALSWGEVNv6jYLljuZ4aITssrtIn9ZkSkBg2uU qx5uWkjywVQxYydpkeNaJwoEypACsUStix+fEeEoy0AY3Pw4sqvZbXBKz0qhc5+Ux1JD 0FBj1VomvzbNhZ/Rv4GxvBCAQuZHm3FtN8VSIKW81sHePV6QJFgyi0E4G9C1JVfIIHOf aTntAMd5HJV9FXlGSnKkyIb4l2esTZbIwkW5UY6L+pCp53IIJpr+e9dBOhl/9zqVQ3rD DGTNgzGz1/JYLGLh4xnKokVK7MXjSv+StVjetUz+R6TXoNTJqBHOX5pud70FwKrgL27b UK6Q== X-Gm-Message-State: ACrzQf1CmhQN52zzM9OHiIksL+Nako416sN3hTA3KLG5ec5PAsoKma/Z lnnAV+uRBZ7IcPHnwtU6zF0MqK2BqTVmxznU X-Google-Smtp-Source: AMsMyM6lpWwsFQE5xdjlh5lCH9RcAfZylTckvjCfnSjT4+QEYN3NwA9JfHngywtJcHjZNz7BzPTgUg== X-Received: by 2002:a2e:bf15:0:b0:26c:12ca:52ae with SMTP id c21-20020a2ebf15000000b0026c12ca52aemr2256426ljr.103.1663918178744; Fri, 23 Sep 2022 00:29:38 -0700 (PDT) Message-ID: Date: Fri, 23 Sep 2022 09:29:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: "Back off" setting for crashing services with s6+openrc? Content-Language: nb-NO To: supervision@list.skarnet.org References: <76856b27-1653-4e3c-28a5-737b63dea1f0@fourc.eu> From: Tor Rune Skoglund Organization: FourC AS In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello, Den 22.09.2022 22:21, skrev John W Higgins: > On Thu, Sep 22, 2022 at 1:13 PM Tor Rune Skoglund wrote: >> As a generic question, is there any setting with this s6+openrc config >> that would make s6 "back off" a configurable number of seconds before >> doing the restart? > Does something as simple as changing your run script to be something like > > run_my_crashing_app || sleep 10 > > Work? The run script will sit there for 10 seconds if your app fails. Not > built in - but should accomplish the task pretty easily. Thanks, yes, that would work. However, I was just hoping this could be set on a more global s6 level so that it would catch any misbehaving service in general. - Tor Rune Skoglund