Displaying 2 results from an estimated 2 matches for "env_systemd".
2011 Apr 20
2
possible bug leading to lmtp crashes
...cot.conf:
import_environment = TZ KRB5CCNAME=/etc/dovecot/krb5.cc
With that do any of the following lines from the referenced hg rev set
mean I am missing anything on my import_environment variable? Or is it
all good?
10.15 +/* <settings checks> */
10.16 +#ifdef HAVE_SYSTEMD
10.17 +# define ENV_SYSTEMD " LISTEN_PID LISTEN_FDS"
10.18 +#else
10.19 +# define ENV_SYSTEMD ""
10.20 +#endif
10.21 +#ifdef DEBUG
10.22 +# define ENV_GDB " GDB"
10.23 +#else
10.24 +# define ENV_GDB ""
10.25 +#endif
10.26 +/* </settings checks> */
10.27 +
10.28 static const struct...
2012 Aug 13
2
[PATCH] Replace hard-coded PKG_STATEDIR with state_dir setting
..._STR, instance_name),
DEF(SET_STR, import_environment),
@@ -211,6 +212,7 @@
static const struct master_settings master_default_settings = {
.base_dir = PKG_RUNDIR,
+ .state_dir = PKG_STATEDIR,
.libexec_dir = PKG_LIBEXECDIR,
.instance_name = PACKAGE,
.import_environment = "TZ" ENV_SYSTEMD ENV_GDB,
@@ -737,8 +739,8 @@
}
/* Make sure our permanent state directory exists */
- if (mkdir_parents(PKG_STATEDIR, 0750) < 0 && errno != EEXIST) {
- i_error("mkdir(%s) failed: %m", PKG_STATEDIR);
+ if (mkdir_parents(set->state_dir, 0750) < 0 && errno !=...