Is there any way to automatically send an email message (as a notification that my server box has rebooted, usually due to power failure) to myself upon system startup, before user login?

I am not very familiar with scripting but am willing to try my best.

I am guessing that /Library/LaunchDaemons is the place to call the script?

  • why before user log in ? – Ruskes Dec 2 '18 at 5:19
  • @Buscar웃: because the server is password protected and requires a user to log in. I want to be notified if the server suffers a power failure, which will cause it to reboot automatically, but be left at the user login screen. – PotentPotables Dec 3 '18 at 23:34

You must log in to answer this question.

Browse other questions tagged .