Mercurial > masqmail
comparison docs/masqmail.conf.5 @ 37:4fee89792559
updated config example and man page to new default online file
author | meillo@marmaro.de |
---|---|
date | Mon, 10 May 2010 10:39:28 +0200 |
parents | 8ea86ac25658 |
children | 8071dc6c6ed1 |
comparison
equal
deleted
inserted
replaced
36:9cb4031fa5e0 | 37:4fee89792559 |
---|---|
349 | 349 |
350 This is the name of the file checked for when masqmail determines whether it is online. | 350 This is the name of the file checked for when masqmail determines whether it is online. |
351 The file should only exist when there is currently a connection. | 351 The file should only exist when there is currently a connection. |
352 Create it in your ip-up script with e.g. | 352 Create it in your ip-up script with e.g. |
353 | 353 |
354 echo \-n <name> > /tmp/connect_route | 354 echo \-n <name> > /var/run/masqmail/masqmail-route |
355 | 355 |
356 chmod 0644 /tmp/connect_route | 356 chmod 0644 /var/run/masqmail/masqmail-route |
357 | 357 |
358 Do not forget to delete it in your ip-down script. | 358 Do not forget to delete it in your ip-down script. |
359 | 359 |
360 .TP | 360 .TP |
361 \fBonline_pipe = \fIfile\fR | 361 \fBonline_pipe = \fIfile\fR |
366 masqmail assumes it is offline if the script returns with a non zero status. | 366 masqmail assumes it is offline if the script returns with a non zero status. |
367 Simple example: | 367 Simple example: |
368 | 368 |
369 #!/bin/sh | 369 #!/bin/sh |
370 | 370 |
371 [ \-e /tmp/connect_route ] || exit 1 | 371 [ \-e /var/run/masqmail/masqmail-route ] || exit 1 |
372 | 372 |
373 cat /tmp/connect_route | 373 cat /var/run/masqmail/masqmail-route |
374 | 374 |
375 exit 0 | 375 exit 0 |
376 | 376 |
377 Of course, instead of the example above you could as well use \fBfile\fR as | 377 Of course, instead of the example above you could as well use \fBfile\fR as |
378 the online detection method, but you can do something more sophisticated. | 378 the online detection method, but you can do something more sophisticated. |