From nobody Wed May 15 19:11:43 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VfjWw4Fbmz4B5WN for ; Wed, 15 May 2024 19:11:56 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VfjWw2Wfvz4w4B for ; Wed, 15 May 2024 19:11:56 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7e2025c3651so84500639f.3 for ; Wed, 15 May 2024 12:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715800315; x=1716405115; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fBdsNqj2flmEBswAojHzZ+won6H56pp88wbwcMGIdi0=; b=ZKKwi+1gfbCxJQTxEitHOdNUvg+mgsq3qJEZWa71JUt9mkh8phI1tJtidF+Q8oB3tS iNtf17I9qknKyqEMjUxBlCGODDZ+cwbT84FaiZBILbvZRjk0Tt7m3pr8ViIm6i4e580H 99mPIYHdr+kuXwZXZkR3vCvsOWlk6vCy4R9G1lWG4rlAWO2z8mmr+pwRlXDsGJ5+jun5 SHqaJFcGa8Fk4Ghk+IP87OzXWchbYpKLmzfyrQ5eOX8kXREGBJ9L2BY9g8WN9TZKLp2R 0VRwq/X6b4Z4h+Jp6KM9BCuF7bivB02qs8EA6gEMcQlmPqWZ7NUleFA3xRP/jwU2u2d6 UxVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715800315; x=1716405115; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fBdsNqj2flmEBswAojHzZ+won6H56pp88wbwcMGIdi0=; b=WudL/Di/BMo2JeLbrD/SH6RrBiGt18KBvtILUg1LN5mBFZL97UVCRpFFjfkSuLBw9I ODrHlM2HUTzsRvmVwHp0xSRiUR42PuX6cj0s4A7ZFYILh4MoARUATr7zU+ViuTrf8pFv ljVPT0H5ns2bMIHqjO3BW2YthOJMkA4hiS0oKDoopvLyX/4H4fqSI59Et/NYvs2O6zYr Mq4IuaBlqBDan6DvfmU5qRE/lLHl8XSSSS/8zSQkO/bKGeI9XCi4ULpli6tmko8wnDIe JBveBhZeRKKzBH7ivSHhmKLrpG+u9CgdbMA2ffmBqrux74KRZxU6N+qqEQLXZ0xXMPPS zXwA== X-Gm-Message-State: AOJu0YwkipAcS46Zi24OJkHfYDSToqgD72SKei8U7N4h9YZ/tKysTOJQ PuT+85iCa4BBOlbdQ0R2KHGGeOY37skXs6nAVNXc4pcM5nITRhxZgjWzvoKkLGiEdTvpf7OrX5l Ce7qQ23GzqeU9v5jjHpFRe9SFb6oE X-Google-Smtp-Source: AGHT+IHb3JdQPKD+gAbQouzy3oUMSI6p4smdkq+WrPcZly3usdDe/R9KqP+9oDlfNB6tnBTP4ah1ljgHHYK4MjDs2Tc= X-Received: by 2002:a05:6e02:13ac:b0:36d:bb54:fd5b with SMTP id e9e14a558f8ab-36dbb54feb0mr17673105ab.5.1715800315006; Wed, 15 May 2024 12:11:55 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <83D445F4-677E-461F-B3FA-AA364B22C653@gushi.org> In-Reply-To: <83D445F4-677E-461F-B3FA-AA364B22C653@gushi.org> From: Shamim Shahriar Date: Wed, 15 May 2024 20:11:43 +0100 Message-ID: Subject: Re: EMail on unexpected reboot To: "Dan Mahoney (Ports)" Cc: questions Content-Type: multipart/alternative; boundary="000000000000481727061882e4fc" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VfjWw2Wfvz4w4B --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), 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
Cron
@reboot

=
One of many choices . . .

On Wed, 15 May 2024,= 09:43 Dan Mahoney (Ports), <freebs= d@gushi.org> wrote:
Hey ther= e all,

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?

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.

Thoughts welcome.

-Dan
(Will be at BSDCan, say Hi, I=E2=80=99ve got blue hair).
--000000000000481727061882e4fc--