12 lines
262 B
12 lines
262 B
[Unit]
|
|
Description=Startup Script
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
ExecStartPre=/bin/sleep 10
|
|
ExecStart=/bin/bash -c "last -wad | mail -s 'server has been rebooted' root"
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|