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.
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
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".
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.
140
/* To expand the directory names below into their actual values,
141
/* use the command "\fBpostconf config_directory\fR" etc.
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.
138
150
/* qmgr(8), queue manager
139
151
/* verify(8), address verification
259
271
* Strip and save the process name for diagnostics etc.
261
273
var_procname = mystrdup(basename(argv[0]));
262
set_mail_conf_str(VAR_PROCNAME, var_procname);
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.
464
watchdog = watchdog_create(1000, (WATCHDOG_FN) 0, (char *) 0);
475
#define MASTER_WATCHDOG_TIME 1000
477
watchdog = watchdog_create(MASTER_WATCHDOG_TIME, (WATCHDOG_FN) 0, (char *) 0);
466
479
#ifdef HAS_VOLATILE_LOCKS
467
480
if (myflock(vstream_fileno(lock_fp), INTERNAL_LOCK,
472
485
msg_fatal("refresh exclusive lock: %m");
474
487
watchdog_start(watchdog); /* same as trigger servers */
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 */