From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 802001396D9 for ; Tue, 17 Oct 2017 00:13:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F2E62BC0B6; Tue, 17 Oct 2017 00:13:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C6A202BC017 for ; Tue, 17 Oct 2017 00:13:39 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 7811D33C4EE for ; Tue, 17 Oct 2017 00:13:38 +0000 (UTC) Subject: Re: [gentoo-user] Re: monit and friends. To: gentoo-user@lists.gentoo.org References: <96762772-dd49-7464-da0c-c0a878a6e7de@gmail.com> <20171016150852.u6w6ekna7la4pxhb@matica.foolinux.mooo.com> <6623947.tej94tQTD2@dell_xps> From: Michael Orlitzky Message-ID: <21d1e743-d11c-20cb-b56f-fcbf616c736d@gentoo.org> Date: Mon, 16 Oct 2017 20:13:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: a10c6468-1afc-492b-ab48-e8edf61669f4 X-Archives-Hash: 9807ccab31b7a3c04de4dbc49a45dc07 On 10/16/2017 11:50 AM, Alan McKinnon wrote: > > What I need here is a small app that will be a constrained, > single-purpose watchdog. If a daemon fails, the watchdog attempts 3 > restarts to get it going, and records the fact it did it (that goes into > the big monitoring system as a reportable fact). If the restart fails, > then a human needs to attend to it as it is seriously or beyond the > scope of a watchdog. > Can the daemon be run in the foreground? start-app; start-app; start-app; /usr/local/bin/page-alan