/etc/rc.d/rc.localeg:
#!/bin/sh echo system started | mail rootAnd make it executable:
chmod a+x rc.localThis is the way it worked before systemd and it continues to work this way with systemd (There's an rc-local.service but you don't need to mess with it).