chiark / gitweb /
probes: start running it from cron, and some debugging
[modbot-mtm.git] / probes / modrelays-probe
index a817a85b8c2c8655303007ea9b93f7412cf0a9e9..79e8ab7f5f4b0d10f13795ec888bb0ec11e0b3c9 100755 (executable)
@@ -209,7 +209,7 @@ probe-domain () {
 }
 
 no_args () {
-       case $# in
+       case $1 in
        0) return ;;
        *) fail "no arguments to $mode allowed" ;;
        esac
@@ -352,7 +352,7 @@ mode_report () {
 }
 
 mode_received () {
-       no_args
+       no_args $#
 
        local hn group id domain mx addr
        while read hn group id domain mx addr; do
@@ -372,12 +372,6 @@ mode_all () {
        done
 }
 
-mode_auto () {
-       no_args $#
-       xxx do something to cause sleeping
-       mode_all
-}
-
 mode_domain () {
        for domain in "$@"; do
                probe-domain $domain