chiark / gitweb /
probes: start running it from cron, and some debugging
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Oct 2017 15:40:05 +0000 (16:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 10 Oct 2017 15:40:05 +0000 (16:40 +0100)
crontab.part.INO
probes/modrelays-probe

index 537dc723debdefe06a5fe2d831721a8a655b1146..5bb16437246d92f1b5596d9645d34362baeb99b4 100644 (file)
@@ -7,3 +7,5 @@
 51 7  12 * *   savelog -p live-%ABBREV%/errs
 52 7  12 * *   savelog -p live-%ABBREV%/webstump/log/webstump.log
 53 7  * * 1    find live-%ABBREV%/xlog/log/%GROUP%/public -mtime +14 -type f -print0 | xargs -r0 rm --
+42     *  * * *        cd %BASEDIR% && probes/modrelays-probe all
+3-59/5 *  * * *        cd %BASEDIR% && probes/modrelays-probe report
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