Displaying 8 results from an estimated 8 matches for "syslog_ident".
2018 May 31
3
use instance-name for syslog?
...> I have a patchset to implement that. Please see the attachment.
> Subject: [PATCH 1/2] master: Do not prepend "dovecot-" to a process name
Why not? I'd think it would be useful to always find dovecot processes.
> - openlog(ident, options, facility);
> + static char *syslog_ident = NULL;
> +
> + i_free(syslog_ident);
> + syslog_ident = i_strdup(ident);
> +
> + openlog(syslog_ident, options, facility);
I don't think this is necessary?
> + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL));
Also not needed.
But yeah, I g...
2018 May 30
3
use instance-name for syslog?
Hello,
When running multiple instances of dovecot on the same host (or running multiple docker container),
it is hard to distinguish logs from different processes: the syslog entries are all prefixed with the same identifier "dovecot"
It is hardcoded here:
https://github.com/dovecot/core/blob/master/src/lib-master/master-service.c#L420
Would it make sense to use the already implemented
2018 Jun 01
0
use instance-name for syslog?
...prepend "dovecot-" to a process name
>
> Why not? I'd think it would be useful to always find dovecot processes.
I want to use 'director/*' names, not 'dovecot-director/*'
for short name.
> > - openlog(ident, options, facility);
> > + static char *syslog_ident = NULL;
> > +
> > + i_free(syslog_ident);
> > + syslog_ident = i_strdup(ident);
> > +
> > + openlog(syslog_ident, options, facility);
>
>
> I don't think this is necessary?
Sorry. I'm not expert of Dovecot implementation...
> > + env_put(t_s...
2018 May 30
0
use instance-name for syslog?
...res.c
index 3023ba8..0ebba3d 100644
--- a/src/lib/failures.c
+++ b/src/lib/failures.c
@@ -443,7 +443,12 @@ void i_syslog_error_handler(const struct failure_context *ctx,
void i_set_failure_syslog(const char *ident, int options, int facility)
{
- openlog(ident, options, facility);
+ static char *syslog_ident = NULL;
+
+ i_free(syslog_ident);
+ syslog_ident = i_strdup(ident);
+
+ openlog(syslog_ident, options, facility);
i_set_fatal_handler(i_syslog_fatal_handler);
i_set_error_handler(i_syslog_error_handler);
diff --git a/src/master/service-process.c b/src/master/service-process.c
index bc10df1..4...
2015 Sep 07
2
How to setup own i686 buildenv for CentOS7
Hi, Nux!
Can you re-paste this cfg? The url is outdated.
- robin
On Tue, Dec 30, 2014 at 2:30 AM, Nux! <nux at li.nux.ro> wrote:
> Hi,
>
> Here's how my epel-7-i386.cfg mock file looks like:
> http://fpaste.org/164110/19877702/raw/
>
> Do note the 32bit packages are unofficial and unsupported. RedHat does not
> support 32bit in EL7.
>
> HTH
> Lucian
>
2015 Sep 07
0
How to setup own i686 buildenv for CentOS7
...= 'username at example.org'
config_opts['macros']['%debug_package'] = '%{nil}'
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[base]
name=BaseOS
baseurl=http://buildlogs.centos.org/centos/7/os/i386/
failovermethod=priority
gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7
gpgcheck=1
[updates]
name=updates
baseurl=http://buildlogs.centos.org/centos/7/updates/i386/
failovermethod=priority
gpgkey...
2008 Aug 27
0
[PATCH] stubdom: add v?errx? and v?warnx? functions
...args);
+void vwarnx(const char *fmt, va_list args);
+
+#endif /* _POSIX_ERR_H */
diff -r 14a9a1629590 extras/mini-os/lib/sys.c
--- a/extras/mini-os/lib/sys.c Wed Aug 27 10:26:50 2008 +0100
+++ b/extras/mini-os/lib/sys.c Wed Aug 27 10:29:36 2008 +0100
@@ -1035,6 +1035,68 @@ void closelog(void)
syslog_ident = NULL;
}
+void vwarn(const char *format, va_list ap)
+{
+ int the_errno = errno;
+ printk("stubdom: ");
+ if (format) {
+ print(0, format, ap);
+ printk(", ");
+ }
+ printk("%s", strerror(the_errno));
+}
+
+void warn(const char *format,...
2015 Feb 18
1
debuginfo versioning tools?
...l buildsys-build'
config_opts['dist'] = 'el6' # only useful for --resultdir variable subst
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
# repos
[base]
name=BaseOS
enabled=1
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
failovermethod=priority
exclude=http*
[updates]
name=updates
enabled=1
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates
failov...