# Base directory where to store runtime data.
#base_dir = /var/run/dovecot/
+# Name of this instance. Used to prefix all Dovecot processes in ps output.
+#instance_name = dovecot
+
# Greeting message for clients.
#login_greeting = Dovecot ready.
if (p != NULL) argv[0] = p+1;
/* prefix with dovecot/ */
- argv[0] = t_strconcat(PACKAGE"/", argv[0], NULL);
+ argv[0] = t_strdup_printf("%s/%s", services->set->instance_name,
+ argv[0]);
(void)execv_const(executable, argv);
}
static const struct setting_define master_setting_defines[] = {
DEF(SET_STR, base_dir),
DEF(SET_STR, libexec_dir),
+ DEF(SET_STR, instance_name),
DEF(SET_STR, import_environment),
DEF(SET_STR, protocols),
DEF(SET_STR, listen),
static const struct master_settings master_default_settings = {
.base_dir = PKG_RUNDIR,
.libexec_dir = PKG_LIBEXECDIR,
+ .instance_name = PACKAGE,
.import_environment = "TZ" ENV_SYSTEMD ENV_GDB,
.protocols = "imap pop3 lmtp",
.listen = "*, ::",
struct master_settings {
const char *base_dir;
const char *libexec_dir;
+ const char *instance_name;
const char *import_environment;
const char *protocols;
const char *listen;