Simple hooks: sends mail and run commands.