Received: from vm-adsy-mail-01.adfinis-sygroup.ch (vm-adsy-mail-01.adfinis-sygroup.ch [95.128.34.186]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 66D6B781A67 for <~alpine/devel@lists.alpinelinux.org>; Wed, 2 Sep 2020 07:01:26 +0000 (UTC) Received: from vm-adsy-mail-01.adfinis-sygroup.ch (localhost [IPv6:::1]) by vm-adsy-mail-01.adfinis-sygroup.ch (Postfix) with ESMTP id 4BhFGY400Tz14Qk; Wed, 2 Sep 2020 09:01:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=adfinis.com; s=mail; t=1599030085; bh=wzP5u3/eVAbt9d0eidqYf1ucKXgmLQNN9PZeepMaH0Y=; h=Subject:From:To:Cc:Date; b=GiN4+SxP/YpgoFBYS3oXq3fIKUwjr6/etPCcaLz+JHEYGh59Kn0TGj45Z2s1SUqxf HZw+kK1+14OGRCmlZDlUMcJNm/4OEPzyJGlV9axdKL16AnnczsePKD/qceMhOEzLVm S2nTqYgjzVLX2suJk3HhN8bVkZ03nIxOFb3RGTusnW9oIYZbcciJgI4eXuU3xXGX8I tPYzToLVqhzEgVjRLGZO6k0pzG9RviBrJx3YPYmVtX8nMdHq7soKH0GUxquiUkiAfo cE/3S5GOto7udFRCnVxoJ2072zedXIC8MRI4tF3ekEROdofBp/VmJW/XoqUZMEg218 cMjBItxrfz3pw== Received: by vm-adsy-mail-01.adfinis-sygroup.ch (kopano-spooler) with MAPI; Wed, 2 Sep 2020 09:01:25 +0200 Subject: RE: Use of supervise-daemon in Alpine From: "Jean-Louis Fuchs" To: "Natanael Copa" , "Rasmus Thomsen" Cc: "Francesco Colista" , "Leonardo" , =?us-ascii?Q?=7Ealpine/devel=40lists=2Ealpinelinux?= =?us-ascii?Q?=2Eorg?= <~alpine/devel@lists.alpinelinux.org>, =?utf-8?Q?S=C3=B6ren_Tempel?= Date: Wed, 2 Sep 2020 07:01:25 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-Mailer: Kopano 8.7.14 Message-Id: Hi -----Original message----- > From: Natanael Copa > Sent: Thursday 27th August 2020 17:13 > To: Rasmus Thomsen > Cc: Francesco Colista ; Leonardo ; ~alpine/devel@lists.alpinelinux.org; S=C3=B6ren Tempel > Subject: Re: Use of supervise-daemon in Alpine > How about we fix supervise-daemon to accept an option or env var to > respawn=3F I think defaults aren't good too. I had this service nebula which is known to fail. supervise-daemon with the default options would restart it as fast as possible for some N times and then stop. Usually nebula fails because of network-conditions that take some to change again. So I added the last line below. These are good for network-problems, but at least bit slower restart per default would be better, not=3F nebula often dies at boot and that never slowed down my boot time. Best #!/sbin/openrc-run name=3D$RC_SVCNAME description=3D"Scalable overlay networking tool" cfgfile=3D"/etc/$RC_SVCNAME/config.yml" command=3D"/usr/sbin/$RC_SVCNAME" command_args=3D"-config $cfgfile" command_user=3D"$RC_SVCNAME" supervisor=3D"supervise-daemon" start_stop_daemon_args=3D"-D 60 -m 0"