Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2020 07:51:25 -0400
From:      Jerry <jerry@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Monitor an app
Message-ID:  <20201002075125.000001d6@seibercom.net>
In-Reply-To: <65C3BE67-3389-4F8E-9975-7EC0714FB056@kreme.com>
References:  <65C3BE67-3389-4F8E-9975-7EC0714FB056@kreme.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/0PutGeaxAl4mWQWSrHwqZh8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, 2 Oct 2020 04:59:59 -0600, @lbutlr commented:
>Are there any tools that monitor apps or services and do sane things
>to make sure that the series are running?
>
>Obviously, I can write a simple script that says something like "if
>service <name> status doesn't have a PID, then =E2=80=A6" but that's
>simplistic and I don't want something that is simply going to restart
>a failed service over and over every time it crashes. (But once or
>twice when it crashes is good, with an escalation to maybe restart a
>different series and a fall back from that to restart the machine=E2=80=A6=
 but
>again, not restarting the machine a few seconds after boot because it
>can't start the service.)
>
>I am not looking for something that says "hey, email is not working"
>(I already have that but more subtly like "Hey, dovecot isn't running"
>or "MySQL isn't running".
>
>Googling leads me to external monitoring of forward facing services
>based on port scanning, I'm looking for something local to the machine.

Have you considered "/sysutils/monit" or one of its cousins? It might
do what you want. It an be configured to limit the number of times it
will attempt to restart a program, and lots of other things too.

--=20
Jerry

--Sig_/0PutGeaxAl4mWQWSrHwqZh8
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEIQb/tTwl6I1ueEVtOHMGOIfexWQFAl93FD4ACgkQOHMGOIfe
xWRsmgf+M3oc14EkDQLWNh3CcqS8wjRki/3VyBMnCsbLNCh/CkV56/GggD5GZL4P
cy+UKPZzmFEDzMb2UD/1GS1/P/3u8qj13YyQ31gw36oZmGANoKYgPFC0tITYDWaU
IBsPPAEqgwyPJuenJ2ddQw/icoC2CQtc9LyFNQL9TnnwBQEJulflmHP6dDic1xwp
1In7PLoJICXYWCp7ptUhJbKtEHkUipwaad9Z808ZOE5GjjsTjuBAZ+Fpe6PPwnu+
ABVntpF01LBtt2m3wC0gDHrBNS1HFSkj66G0ohQFXlXFS62deOW8iNOSIvNR1739
mQiErWlzknxM0SI6FaQ/vD80RRyvwA==
=Blqp
-----END PGP SIGNATURE-----

--Sig_/0PutGeaxAl4mWQWSrHwqZh8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201002075125.000001d6>