provisioning tool for building opinionated architecture
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
262 B

7 months ago
  1. [Unit]
  2. Description=Startup Script
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. ExecStartPre=/bin/sleep 10
  7. ExecStart=/bin/bash -c "last -wad | mail -s 'server has been rebooted' root"
  8. RemainAfterExit=yes
  9. [Install]
  10. WantedBy=multi-user.target