diff options
-rw-r--r-- | ymir.nix | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -911,20 +911,20 @@ in rec { | |||
911 | EXTRA="" | 911 | EXTRA="" |
912 | for e in "''${@:2}"; do | 912 | for e in "''${@:2}"; do |
913 | EXTRA+="$e"$'\n' | 913 | EXTRA+="$e"$'\n' |
914 | done | 914 | done |
915 | 915 | ||
916 | UNITSTATUS=$(systemctl status $UNIT) | 916 | UNITSTATUS=$(systemctl status $UNIT) |
917 | 917 | ||
918 | sendmail $MAILTO <<EOF | 918 | sendmail $MAILTO <<EOF |
919 | From:$MAILFROM | 919 | From:$MAILFROM |
920 | To:$MAILTO | 920 | To:$MAILTO |
921 | Subject:Status mail for unit: $UNIT | 921 | Subject:Status mail for unit: $UNIT |
922 | 922 | ||
923 | Status report for unit: $UNIT | 923 | Status report for unit: $UNIT |
924 | $EXTRA | 924 | $EXTRA |
925 | 925 | ||
926 | $UNITSTATUS | 926 | $UNITSTATUS |
927 | EOF | 927 | EOF |
928 | ''; | 928 | ''; |
929 | }; | 929 | }; |
930 | } | 930 | } |