[CentOS] server rebooted email

Thu Nov 19 11:07:13 UTC 2020
Kenneth Porter <shiva at sewingwitch.com>

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.)