From owner-freebsd-questions@freebsd.org Fri Oct 2 15:23:55 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 487CB42FC54 for ; Fri, 2 Oct 2020 15:23:55 +0000 (UTC) (envelope-from lysfjord.daniel@smokepit.net) Received: from smtp-out.smokepit.net (smtp-out.smokepit.net [18.200.56.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-out.smokepit.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C2v0V33xsz4KkR for ; Fri, 2 Oct 2020 15:23:53 +0000 (UTC) (envelope-from lysfjord.daniel@smokepit.net) Received: from cm-84.215.44.206.getinternet.no ([84.215.44.206] helo=smokepit.net) by smtp-out.smokepit.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOMuR-0006i8-9g for freebsd-questions@freebsd.org; Fri, 02 Oct 2020 15:23:47 +0000 Received: from http01.lan.smokepit.net ([10.0.3.111] helo=webmail.smokepit.net) by smokepit.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94 (FreeBSD)) (envelope-from ) id 1kOMuP-000A9n-1a for freebsd-questions@freebsd.org; Fri, 02 Oct 2020 17:23:46 +0200 MIME-Version: 1.0 Date: Fri, 02 Oct 2020 15:23:45 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.14.0 From: "Daniel Lysfjord" Message-ID: <9246cc087d3daaf6f9501c750cd795ad@smokepit.net> Subject: Re: Monitor an app To: freebsd-questions@freebsd.org In-Reply-To: <65C3BE67-3389-4F8E-9975-7EC0714FB056@kreme.com> References: <65C3BE67-3389-4F8E-9975-7EC0714FB056@kreme.com> X-Originating-IP: 10.0.0.200 X-Spam-Report: Action: no action Symbol: ARC_NA(0.00) Symbol: RCVD_VIA_SMTP_AUTH(0.00) Symbol: HAS_XOIP(0.00) Symbol: FROM_HAS_DN(0.00) Symbol: TO_MATCH_ENVRCPT_ALL(0.00) Symbol: BAYES_HAM(-2.62) Symbol: MIME_GOOD(-0.10) Symbol: TO_DN_NONE(0.00) Symbol: RCPT_COUNT_ONE(0.00) Symbol: RCVD_COUNT_ONE(0.00) Symbol: FROM_EQ_ENVFROM(0.00) Symbol: MIME_TRACE(0.00) Symbol: RCVD_TLS_ALL(0.00) Symbol: MID_RHS_MATCH_FROM(0.00) Message-ID: 9246cc087d3daaf6f9501c750cd795ad@smokepit.net X-Rspamd-Queue-Id: 4C2v0V33xsz4KkR X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[smokepit.net:s=loke]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.978]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; R_SPF_ALLOW(-0.20)[+ip4:18.200.56.156]; DKIM_TRACE(0.00)[smokepit.net:+]; DMARC_POLICY_ALLOW(-0.50)[smokepit.net,reject]; NEURAL_HAM_SHORT(-1.06)[-1.063]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:18.200.0.0/16, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RECEIVED_SPAMHAUS_PBL(0.00)[84.215.44.206:received] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 15:23:55 -0000 "@lbutlr" skrev 2. oktober 2020 kl. 13:00:=0A=0A> Are= there any tools that monitor apps or services and do sane things to make= sure that the series=0A> are running?=0A> =0A> Obviously, I can write a = simple script that says something like "if service status doesn't= =0A> have a PID, then =E2=80=A6" but that's simplistic and I don't want s= omething that is simply going to=0A> restart a failed service over and ov= er every time it crashes. (But once or twice when it crashes is=0A> good,= with an escalation to maybe restart a different series and a fall back f= rom that to restart=0A> the machine=E2=80=A6 but again, not restarting th= e machine a few seconds after boot because it can't start=0A> the service= .)=0A> =0A> I am not looking for something that says "hey, email is not w= orking" (I already have that but more=0A> subtly like "Hey, dovecot isn't= running" or "MySQL isn't running".=0A> =0A> Googling leads me to externa= l monitoring of forward facing services based on port scanning, I'm=0A> l= ooking for something local to the machine.=0A> =0A> -- =0A> IT'S BECAUSE = OF THE UNCERTAINTY PRINCIPLE. 'What's that?' I'M NOT=0A> SURE. --The Fift= h Elephant=0A> =0A> _______________________________________________=0A> f= reebsd-questions@freebsd.org mailing list=0A> https://lists.freebsd.org/m= ailman/listinfo/freebsd-questions=0A> To unsubscribe, send any mail to "f= reebsd-questions-unsubscribe@freebsd.org"=0A=0A=0AI like FSC[1].=0A=0A[1]= : https://www.freshports.org/sysutils/fsc/