Added reset command to mbout
This commit is contained in:
parent
026882c2af
commit
a4f753b04e
@ -12,7 +12,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<BLOCKQUOTE>
|
||||
<h5>Last update 31-Jan-2001</h5>
|
||||
<h5>Last update 17-Mar-2001</h5>
|
||||
<P> <P>
|
||||
|
||||
<H1>mbout - The Outbound Manager</H1>
|
||||
@ -73,6 +73,11 @@ actual call. This is also practical if you want some files from your uplink,
|
||||
just make the requests and the actual request is send when your normal
|
||||
scheduled poll to your uplink is processed.
|
||||
<P>
|
||||
<code><strong>mbout</strong> reset [node..node]</code> resets the nodes "try"
|
||||
counter to zero. So if a node is undiable, the counter is 30 or more, then by
|
||||
resetting this counter that node will be called again. The outbound is rescanned
|
||||
after this command so that calling will start immediatly.
|
||||
<P>
|
||||
<code><strong>mbout</strong> stat</code> shows the status of the mailer outbound.
|
||||
This status is also written to the logfile.
|
||||
<P>
|
||||
|
@ -134,7 +134,7 @@ void Help()
|
||||
printf(" n node <node> Show nodelist information\n");
|
||||
printf(" p poll <node> [node..node] Poll node(s) (always crash)\n");
|
||||
printf(" req req <node> <file> [file..file] Request file(s) from node\n");
|
||||
printf(" res reset <node> Reset node(s) \"try\" counter\n");
|
||||
printf(" res reset <node> [node..node] Reset node(s) \"try\" counter\n");
|
||||
printf(" sta stat Show outbound status\n");
|
||||
printf(" sto stop <node> [node..node] Stop polling node(s)\n");
|
||||
printf("\n");
|
||||
@ -286,10 +286,18 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (do_reset) {
|
||||
rc = reset(addr);
|
||||
for (i = 3; i <= argc; i++) {
|
||||
if (strncasecmp(argv[i-1], "-q", 2)) {
|
||||
if ((addr = parsefaddr(argv[i-1])) == NULL)
|
||||
Fatal((char *)"Unrecognizable address");
|
||||
j = reset(addr);
|
||||
tidy_faddr(addr);
|
||||
if (j > rc)
|
||||
rc = j;
|
||||
}
|
||||
}
|
||||
if (rc)
|
||||
rc += 100;
|
||||
rc = 100;
|
||||
die(rc);
|
||||
}
|
||||
|
||||
|
@ -330,6 +330,9 @@ int reset(faddr *addr)
|
||||
return 0;
|
||||
|
||||
putstatus(addr, 0, 0);
|
||||
Syslog('+', "Reset try-counter for %s", ascfnode(addr, 0x1f));
|
||||
if (!do_quiet)
|
||||
printf("Reset try-counter for %s\n", ascfnode(addr, 0x1f));
|
||||
CreateSema((char *)"scanout");
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user