Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2024 20:11:43 +0100
From:      Shamim Shahriar <shamim.shahriar@gmail.com>
To:        "Dan Mahoney (Ports)" <freebsd@gushi.org>
Cc:        questions <questions@freebsd.org>
Subject:   Re: EMail on unexpected reboot
Message-ID:  <CAOyJeZQL2UYfDmMQXV2rBYaP9xf%2Bh_ZC7JmKCJC_6QQs3PzSPw@mail.gmail.com>
In-Reply-To: <83D445F4-677E-461F-B3FA-AA364B22C653@gushi.org>
References:  <83D445F4-677E-461F-B3FA-AA364B22C653@gushi.org>

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

Cron
@reboot

One of many choices . . .

On Wed, 15 May 2024, 09:43 Dan Mahoney (Ports), <freebsd@gushi.org> wrote:

> Hey there all,
>
> Is there something in the standard rc() structure that detects an unclean
> reboot and can take an action on it, like sending an email?
>
> I=E2=80=99m not so interested in saving a core file or anything like that=
, just
> that some machines reboot so fast that the usual monitoring can miss it.
>
> Thoughts welcome.
>
> -Dan
> (Will be at BSDCan, say Hi, I=E2=80=99ve got blue hair).
>

--000000000000481727061882e4fc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Cron<div dir=3D"auto">@reboot</div><div dir=3D"auto"><br>=
</div><div dir=3D"auto">One of many choices . . .</div></div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 15 May 2024,=
 09:43 Dan Mahoney (Ports), &lt;<a href=3D"mailto:freebsd@gushi.org">freebs=
d@gushi.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey ther=
e all,<br>
<br>
Is there something in the standard rc() structure that detects an unclean r=
eboot and can take an action on it, like sending an email?<br>
<br>
I=E2=80=99m not so interested in saving a core file or anything like that, =
just that some machines reboot so fast that the usual monitoring can miss i=
t.<br>
<br>
Thoughts welcome.<br>
<br>
-Dan<br>
(Will be at BSDCan, say Hi, I=E2=80=99ve got blue hair).<br>
</blockquote></div>

--000000000000481727061882e4fc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOyJeZQL2UYfDmMQXV2rBYaP9xf%2Bh_ZC7JmKCJC_6QQs3PzSPw>