~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/qmgr/qmgr.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
/*      limit > 1, a destination is a domain, otherwise it is a recipient.
300
300
/* .IP "\fItransport\fB_destination_rate_delay $default_destination_rate_delay
301
301
/*      Idem, for delivery via the named message \fItransport\fR.
 
302
/* SAFETY CONTROLS
 
303
/* .ad
 
304
/* .fi
 
305
/* .IP "\fBqmgr_daemon_timeout (1000s)\fR"
 
306
/*      How much time a Postfix queue manager process may take to handle
 
307
/*      a request before it is terminated by a built-in watchdog timer.
 
308
/* .IP "\fBqmgr_ipc_timeout (60s)\fR"
 
309
/*      The time limit for the queue manager to send or receive information
 
310
/*      over an internal communication channel.
302
311
/* MISCELLANEOUS CONTROLS
303
312
/* .ad
304
313
/* .fi
314
323
/* .IP "\fBhelpful_warnings (yes)\fR"
315
324
/*      Log warnings about problematic configuration settings, and provide
316
325
/*      helpful suggestions.
317
 
/* .IP "\fBipc_timeout (3600s)\fR"
318
 
/*      The time limit for sending or receiving information over an internal
319
 
/*      communication channel.
320
326
/* .IP "\fBprocess_id (read-only)\fR"
321
327
/*      The process ID of a Postfix command or daemon process.
322
328
/* .IP "\fBprocess_name (read-only)\fR"
436
442
int     var_conc_feedback_debug;
437
443
int     var_dest_rate_delay;
438
444
char   *var_def_filter_nexthop;
 
445
int     var_qmgr_daemon_timeout;
 
446
int     var_qmgr_ipc_timeout;
439
447
 
440
448
static QMGR_SCAN *qmgr_scans[2];
441
449
 
651
659
     * Left-over active queue entries are moved to the incoming queue because
652
660
     * the incoming queue has priority; moving left-overs to the deferred
653
661
     * queue could cause anomalous delays when "postfix reload/start" are
654
 
     * issued often.
 
662
     * issued often. Override the IPC timeout (default 3600s) so that the
 
663
     * queue manager can reset a broken IPC channel before the watchdog timer
 
664
     * goes off.
655
665
     */
 
666
    var_ipc_timeout = var_qmgr_ipc_timeout;
656
667
    var_use_limit = 0;
657
668
    var_idle_limit = 0;
658
669
    qmgr_move(MAIL_QUEUE_ACTIVE, MAIL_QUEUE_INCOMING, event_time());
685
696
        VAR_QMGR_CLOG_WARN_TIME, DEF_QMGR_CLOG_WARN_TIME, &var_qmgr_clog_warn_time, 0, 0,
686
697
        VAR_XPORT_REFILL_DELAY, DEF_XPORT_REFILL_DELAY, &var_xport_refill_delay, 1, 0,
687
698
        VAR_DEST_RATE_DELAY, DEF_DEST_RATE_DELAY, &var_dest_rate_delay, 0, 0,
 
699
        VAR_QMGR_DAEMON_TIMEOUT, DEF_QMGR_DAEMON_TIMEOUT, &var_qmgr_daemon_timeout, 1, 0,
 
700
        VAR_QMGR_IPC_TIMEOUT, DEF_QMGR_IPC_TIMEOUT, &var_qmgr_ipc_timeout, 1, 0,
688
701
        0,
689
702
    };
690
703
    static const CONFIG_INT_TABLE int_table[] = {
733
746
                        MAIL_SERVER_LOOP, qmgr_loop,
734
747
                        MAIL_SERVER_PRE_ACCEPT, pre_accept,
735
748
                        MAIL_SERVER_SOLITARY,
 
749
                        MAIL_SERVER_WATCHDOG, &var_qmgr_daemon_timeout,
736
750
                        0);
737
751
}