~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to src/master/master.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
/* .IP "\fBservice_throttle_time (60s)\fR"
96
96
/*      How long the Postfix \fBmaster\fR(8) waits before forking a server that
97
97
/*      appears to be malfunctioning.
 
98
/* .PP
 
99
/*      Available in Postfix version 2.6 and later:
 
100
/* .IP "\fBmaster_service_disable (empty)\fR"
 
101
/*      Selectively disable \fBmaster\fR(8) listener ports by service type
 
102
/*      or by service name and type.
98
103
/* MISCELLANEOUS CONTROLS
99
104
/* .ad
100
105
/* .fi
126
131
/*      The location of the Postfix top-level queue directory.
127
132
/* .IP "\fBsyslog_facility (mail)\fR"
128
133
/*      The syslog facility of Postfix logging.
129
 
/* .IP "\fBsyslog_name (postfix)\fR"
 
134
/* .IP "\fBsyslog_name (see 'postconf -d' output)\fR"
130
135
/*      The mail system name that is prepended to the process name in syslog
131
136
/*      records, so that "smtpd" becomes, for example, "postfix/smtpd".
132
137
/* FILES
133
 
/*      /etc/postfix/main.cf, global configuration file.
134
 
/*      /etc/postfix/master.cf, master server configuration file.
135
 
/*      /var/spool/postfix/pid/master.pid, master lock file.
136
 
/*      /var/lib/postfix/master.lock, master lock file.
 
138
/* .ad
 
139
/* .fi
 
140
/*      To expand the directory names below into their actual values,
 
141
/*      use the command "\fBpostconf config_directory\fR" etc.
 
142
/* .na
 
143
/* .nf
 
144
/*
 
145
/*      $config_directory/main.cf, global configuration file.
 
146
/*      $config_directory/master.cf, master server configuration file.
 
147
/*      $queue_directory/pid/master.pid, master lock file.
 
148
/*      $data_directory/master.lock, master lock file.
137
149
/* SEE ALSO
138
150
/*      qmgr(8), queue manager
139
151
/*      verify(8), address verification
259
271
     * Strip and save the process name for diagnostics etc.
260
272
     */
261
273
    var_procname = mystrdup(basename(argv[0]));
262
 
    set_mail_conf_str(VAR_PROCNAME, var_procname);
263
274
 
264
275
    /*
265
276
     * When running a child process, don't leak any open files that were
461
472
     * multiple things at the same time, it really is all a single thread, so
462
473
     * that there are no concurrency conflicts within the master process.
463
474
     */
464
 
    watchdog = watchdog_create(1000, (WATCHDOG_FN) 0, (char *) 0);
 
475
#define MASTER_WATCHDOG_TIME    1000
 
476
 
 
477
    watchdog = watchdog_create(MASTER_WATCHDOG_TIME, (WATCHDOG_FN) 0, (char *) 0);
465
478
    for (;;) {
466
479
#ifdef HAS_VOLATILE_LOCKS
467
480
        if (myflock(vstream_fileno(lock_fp), INTERNAL_LOCK,
472
485
            msg_fatal("refresh exclusive lock: %m");
473
486
#endif
474
487
        watchdog_start(watchdog);               /* same as trigger servers */
475
 
        event_loop(-1);
 
488
        event_loop(MASTER_WATCHDOG_TIME / 2);
476
489
        if (master_gotsighup) {
477
 
            msg_info("reload configuration %s", var_config_dir);
 
490
            msg_info("reload -- version %s, configuration %s",
 
491
                     var_mail_version, var_config_dir);
478
492
            master_gotsighup = 0;               /* this first */
479
493
            master_vars_init();                 /* then this */
480
494
            master_refresh();                   /* then this */