[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] server rebooted email
From:       Tony Schreiner <anthony.schreiner () bc ! edu>
Date:       2020-11-19 19:35:28
Message-ID: CAO-3pRKAu886Y2C1TM7dsOp1w3Fm_XjNEktPpoQMTSEWvGJdtg () mail ! gmail ! com
[Download RAW message or body]

On Thu, Nov 19, 2020 at 11:32 AM Oleg Cherkasov <o1e9.cherkasov@yandex.com>
wrote:

> On 19.11.2020 12:07, Kenneth Porter wrote:
> > I used to put a line in rc.local to email root that my server rebooted.
> > Does anyone have a nice systemd unit file to do the same?
> >
> > Also useful would be a shutdown email with the output of uptime. (I
> > usually do that manually when rebooting for a kernel update.)
> >
>
> I would recommend to install logcheck and spend sometime to customize it
> for your needs.  It would report if your server rebooted with dmesg
> inlined.
>
>
crontab has a @reboot pattern
as an alternative
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic