Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 616 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 616 Bytes

Usage

  1. Install to /etc/systemd/system:

  2. Optionally configure recipient's and sender's e-mail addresses in send-mail:

    These default to root@<hostname> and <failed-unit-user>@<hostname>.

  3. Add to the unit(s) of whose failures you would like to be notified:

    [Unit]
    ...
    OnFailure=send-mail@%N.service
    ...
    
  4. Reload the modified unit(s):

    $ sudo systemctl daemon-reload