|
|
## Sysadmins emails should be added in /etc/aliases
|
|
|
|
|
|
```
|
|
|
vi /etc/aliases
|
|
|
root: admin1@domain.net, admin2@domain.net, admin3@domain.net
|
|
|
```
|
|
|
|
|
|
**WHY:**
|
|
|
|
|
|
The server sends emails for the security updates* that have been installed overnight and inform the sysadmins if a reboot is necessary.
|
|
|
|
|
|
* Requires that we have enabled unattended updates
|
|
|
|
|
|
**OPTIONAL:**
|
|
|
|
|
|
In order to receive the latest Debian security advisories, subscribe to the [debian-security-announce](https://lists.debian.org/debian-security-announce/) mailing list.
|
|
|
|
|
|
## Server reboot
|
|
|
`shutdown -r +2 `
|
|
|
# the flag +m will execute the shutdown after 2min. Handy to make sure users can logout before shutting down.
|
|
|
# the flag -r is for reboot
|
|
|
alternatives:
|
|
|
systemctl reboot
|
|
|
We didn't find a flag to add specific time, so we opted for the above. |
|
|
\ No newline at end of file |