[Unit]
Description=Sends failure mail for service %i
[Service]
Type=oneshot
ExecStart=/var/local/sendstatusmail.sh failure %i