iankelling.org
/
git
/
log-quiet
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d35a89d
)
minor: documentation
author
Ian Kelling
<iank@fsf.org>
Fri, 13 Jan 2023 23:07:26 +0000
(18:07 -0500)
committer
Ian Kelling
<iank@fsf.org>
Fri, 13 Jan 2023 23:07:26 +0000
(18:07 -0500)
sysd-mail-once
patch
|
blob
|
history
diff --git
a/sysd-mail-once
b/sysd-mail-once
index b1a67b881cee88388d64ff0e31cda81d24de96f7..d44b77fd48f35c0405be838fc20052b99604ae6f 100755
(executable)
--- a/
sysd-mail-once
+++ b/
sysd-mail-once
@@
-23,8
+23,10
@@
to=root
case "$1" in
-h|--help)
cat <<EOF
case "$1" in
-h|--help)
cat <<EOF
-Usage: sysd-mail-once [-t TO_ADDRESS] [-ERRORS] SERVICE COMMAND [ARGS...]
-For systemd timers, email (with exim) on repeated failure & success after failure.
+Usage: sysd-mail-once [-t TO_ADDRESS] [-ERRORS] SERVICE COMMAND [COMMAND_ARGS...]
+
+For use with systemd timers, to email (with exim) on repeated failure &
+success after failure.
In the service triggered by the timer, prepend this script to the ExecStart.
The email will contain the service's logs for the last ERRORS runs.
In the service triggered by the timer, prepend this script to the ExecStart.
The email will contain the service's logs for the last ERRORS runs.
@@
-34,6
+36,8
@@
Stores error counts in $cbase
-ERRORS: ERRORS is the number of failurs to accumulate before mailing the error.
Default is 3.
-ERRORS: ERRORS is the number of failurs to accumulate before mailing the error.
Default is 3.
+
+-t TO_ADDRESS: Address to email about errors
EOF
exit 0
;;
EOF
exit 0
;;