chiark
/
gitweb
/
~webstump
/
modbot-mtm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
probes: start running it from cron, and some debugging
[modbot-mtm.git]
/
probes
/
modrelays-probe
diff --git
a/probes/modrelays-probe
b/probes/modrelays-probe
index a817a85b8c2c8655303007ea9b93f7412cf0a9e9..79e8ab7f5f4b0d10f13795ec888bb0ec11e0b3c9 100755
(executable)
--- a/
probes/modrelays-probe
+++ b/
probes/modrelays-probe
@@
-209,7
+209,7
@@
probe-domain () {
}
no_args () {
}
no_args () {
- case $
#
in
+ case $
1
in
0) return ;;
*) fail "no arguments to $mode allowed" ;;
esac
0) return ;;
*) fail "no arguments to $mode allowed" ;;
esac
@@
-352,7
+352,7
@@
mode_report () {
}
mode_received () {
}
mode_received () {
- no_args
+ no_args
$#
local hn group id domain mx addr
while read hn group id domain mx addr; do
local hn group id domain mx addr
while read hn group id domain mx addr; do
@@
-372,12
+372,6
@@
mode_all () {
done
}
done
}
-mode_auto () {
- no_args $#
- xxx do something to cause sleeping
- mode_all
-}
-
mode_domain () {
for domain in "$@"; do
probe-domain $domain
mode_domain () {
for domain in "$@"; do
probe-domain $domain