Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Michael Biebl
2011/3/12 Michael Biebl : > 2011/3/11 Andrey Borzenkov : >> On Fri, Mar 11, 2011 at 9:10 PM, Mike Kazantsev wrote: > >> >>> Btw, rsyslog.service seem to be installed into multi-user.target.wants, >>> why not syslog.target, which seem to indicate the point where proper >>> syslog daemon is running

Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Michael Biebl
2011/3/11 Andrey Borzenkov : > On Fri, Mar 11, 2011 at 9:10 PM, Mike Kazantsev wrote: > >> Btw, rsyslog.service seem to be installed into multi-user.target.wants, >> why not syslog.target, which seem to indicate the point where proper >> syslog daemon is running (according to systemd.special(7))?

[systemd-devel] crypto: to show stars or not to show them

2011-03-11 Thread Jan Engelhardt
I have been made aware of showing stars when entering passwords for crypttab volumes through systemd's integrated scripts/programs is considered a "feature". Well, I don't concur there. Potential overseers could count the stars, which is not so thrilling. Which is probably why UNIX and/or its

Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Andrey Borzenkov
On Fri, Mar 11, 2011 at 9:10 PM, Mike Kazantsev wrote: > On Fri, 11 Mar 2011 16:55:28 +0100 > Lennart Poettering wrote: > >> On Fri, 11.03.11 09:15, Mike Kazantsev ([email protected]) wrote: >> >> > On Mon, 7 Mar 2011 23:49:45 +0100 >> > Lennart Poettering wrote: >> > >> > > Heya, >> > > >> >

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Mike Kazantsev
On Fri, 11 Mar 2011 17:01:46 +0100 Lennart Poettering wrote: > On Fri, 11.03.11 08:49, Mike Kazantsev ([email protected]) wrote: > > > > Hmm, that is borked. We do provider proper error levels when we write > > > things to kmsg. This must get lost later on. But we do strip the > > > facility,

Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Mike Kazantsev
On Fri, 11 Mar 2011 16:55:28 +0100 Lennart Poettering wrote: > On Fri, 11.03.11 09:15, Mike Kazantsev ([email protected]) wrote: > > > On Mon, 7 Mar 2011 23:49:45 +0100 > > Lennart Poettering wrote: > > > > > Heya, > > > > > > in the past weeks a couple of folks have been asking about the

Re: [systemd-devel] [PATCH 2/2] dbus: add service D-Bus property "Sockets"

2011-03-11 Thread Andrey Borzenkov
On Fri, Mar 11, 2011 at 9:01 PM, Lennart Poettering wrote: > B1;2790;0cOn Fri, 11.03.11 15:26, Andrey Borzenkov ([email protected]) > wrote: > >> Support displaying of Sockets for a service. Renames >> bus_unit_append_dependencies into bus_properties_append_units >> as this is what it really do

Re: [systemd-devel] [PATCH 2/2] dbus: add service D-Bus property "Sockets"

2011-03-11 Thread Lennart Poettering
B1;2790;0cOn Fri, 11.03.11 15:26, Andrey Borzenkov ([email protected]) wrote: > Support displaying of Sockets for a service. Renames > bus_unit_append_dependencies into bus_properties_append_units > as this is what it really does. Looks good, too, but I think bus_unit_append_dependencies() is a

[systemd-devel] [PATCH] man: fix systemctl try-restart description

2011-03-11 Thread Andrey Borzenkov
It is no more error when service is not running. --- man/systemctl.xml |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index d37a7d9..f10471a 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -447,9 +447,9 @@

Re: [systemd-devel] [PATCH 1/2] dbus: consolidate service SysV conditionals

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 15:26, Andrey Borzenkov ([email protected]) wrote: > No need to define the same set of properties twice. While on it, > add FsckPassNo to introspection. Looks good, but could you rename BUS_SERVICE_SYSV_INTERFACE to BUS_SERVICE_SYSV_INTERFACE_FRAGMENT or so, since it isn't comp

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 19:41, Andrey Borzenkov ([email protected]) wrote: > Well ... the problem really is that format is supposed to be single > printable character, which does not really support bit operations and > such. What about attached (completely untested) path - which adds > marker to anythin

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Kay Sievers
On Fri, Mar 11, 2011 at 17:47, Rainer Gerhards wrote: >> From: Andrey Borzenkov [mailto:[email protected]] >> Well ... the problem really is that format is supposed to be single > printable >> character, which does not really support bit operations and such. What > about >> attached (completely u

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Andrey Borzenkov [mailto:[email protected]] > Sent: Friday, March 11, 2011 5:42 PM > To: Lennart Poettering > Cc: Michael Biebl; [email protected]; Rainer Gerhards > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > > On

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Andrey Borzenkov
On Fri, Mar 11, 2011 at 7:11 PM, Lennart Poettering wrote: > On Fri, 11.03.11 08:45, Michael Biebl ([email protected]) wrote: > >> >> 2011/3/11 Rainer Gerhards : >> > >> > So isn't that already a solution? >> > >> >> The problem with PRINTK_TIME afaics is that it needs to be turned on >> explicitly

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Lennart Poettering [mailto:[email protected]] > Sent: Friday, March 11, 2011 5:29 PM > To: Rainer Gerhards > Cc: Andrey Borzenkov; Michael Biebl; Mike Kazantsev; systemd- > [email protected] > Subject: Re: [systemd-devel] systemd-logger and extern

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 17:22, Rainer Gerhards ([email protected]) wrote: > > > Systemd shuffles the system log socket to the kernel log. That is > > > nice, because we have logging available right from the system start. > > > However, in rsyslog users can configure different rules based on the >

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Lennart Poettering [mailto:[email protected]] > Sent: Friday, March 11, 2011 5:22 PM > To: Rainer Gerhards > Cc: Michael Biebl; Andrey Borzenkov; Mike Kazantsev; systemd- > [email protected] > Subject: Re: [systemd-devel] systemd-logger and extern

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 17:08, Rainer Gerhards ([email protected]) wrote: > > > Lennart recommended that to me and I had some code in place to do it. > > > However, at that time this did not work because the kernel did not > > > record that timestamp. This was added a while later, but I did not ye

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Lennart Poettering [mailto:[email protected]] > Sent: Friday, March 11, 2011 5:17 PM > To: Rainer Gerhards > Cc: Andrey Borzenkov; Michael Biebl; Mike Kazantsev; systemd- > [email protected] > Subject: Re: [systemd-devel] systemd-logger and extern

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 09:55, Rainer Gerhards ([email protected]) wrote: > > Sounds quite reasonable :) > > > > What would be also really nice - some systemd specific marker so > > rsyslog could extract syslogd messages from kmsg. Not sure if it is > > really doable without some gross kernel hac

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 10:37, Andrey Borzenkov ([email protected]) wrote: > > On Fri, Mar 11, 2011 at 10:03 AM, Michael Biebl wrote: > > For me the log messages actually look slightly different, as I also > > get the kernel timestamp and I also noticed a different problem: > > > > Mar 11 07:56:27 plut

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 09:51, Rainer Gerhards ([email protected]) wrote: > > > -Original Message- > > From: Michael Biebl [mailto:[email protected]] > > Sent: Friday, March 11, 2011 8:45 AM > > To: Rainer Gerhards > > Cc: [email protected] > > Subject: Re: [systemd-devel

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 08:45, Michael Biebl ([email protected]) wrote: > > 2011/3/11 Rainer Gerhards : > > > > So isn't that already a solution? > > > > The problem with PRINTK_TIME afaics is that it needs to be turned on > explicitly whereas I'd expect SO_TIMESTAMP will be available always > (if the k

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Lennart Poettering [mailto:[email protected]] > Sent: Friday, March 11, 2011 5:06 PM > To: Rainer Gerhards > Cc: Michael Biebl; Andrey Borzenkov; Mike Kazantsev; systemd- > [email protected] > Subject: Re: [systemd-devel] systemd-logger and extern

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 08:09, Rainer Gerhards ([email protected]) wrote: > > As you can see, when rsyslog starts up and flushes the kmsg queue, the > > log messages all have the same timestamp (Mar 11 07:56:27) and they > > come after the rsyslog startup message, although they were logged > > bef

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 08:03, Michael Biebl ([email protected]) wrote: > > 2011/2/26 Andrey Borzenkov : > > On Wed, Feb 23, 2011 at 10:48 AM, Mike Kazantsev > > wrote: > >> > >> I've recently deployed systemd on a machine that uses some syslog > >> monitoring software and the software went nuts becaus

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 08:49, Mike Kazantsev ([email protected]) wrote: > > Hmm, that is borked. We do provider proper error levels when we write > > things to kmsg. This must get lost later on. But we do strip the > > facility, so that it gets replaced by "kernel", that is true. > > > > The only re

Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 09:39, Andrey Borzenkov ([email protected]) wrote: > > Both seem to equally work for me, > > Well ... without systemd-kmsg-syslogd, you rely on kernel to buffer > all data until rsyslogd is started;all datagrams beyond backlog size > (default 128) are lost. backlog is not the ri

Re: [systemd-devel] [PACKAGERS] rsyslog and systemd

2011-03-11 Thread Lennart Poettering
On Fri, 11.03.11 09:15, Mike Kazantsev ([email protected]) wrote: > On Mon, 7 Mar 2011 23:49:45 +0100 > Lennart Poettering wrote: > > > Heya, > > > > in the past weeks a couple of folks have been asking about the rsyslog > > and systemd glue in systemd, and I never responded since this was s

[systemd-devel] [PATCH 2/2] dbus: add service D-Bus property "Sockets"

2011-03-11 Thread Andrey Borzenkov
Support displaying of Sockets for a service. Renames bus_unit_append_dependencies into bus_properties_append_units as this is what it really does. --- src/dbus-service.c |2 ++ src/dbus-unit.c|2 +- src/dbus-unit.h| 32 3 files changed, 19 inserti

[systemd-devel] [PATCH 1/2] dbus: consolidate service SysV conditionals

2011-03-11 Thread Andrey Borzenkov
No need to define the same set of properties twice. While on it, add FsckPassNo to introspection. --- src/dbus-service.c | 37 - 1 files changed, 8 insertions(+), 29 deletions(-) diff --git a/src/dbus-service.c b/src/dbus-service.c index 6bb6a9d..ed28e22 1006

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Andrey Borzenkov [mailto:[email protected]] > Sent: Friday, March 11, 2011 11:01 AM > To: Rainer Gerhards > Cc: Michael Biebl; Mike Kazantsev; [email protected] > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > Actual

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Andrey Borzenkov [mailto:[email protected]] > Sent: Friday, March 11, 2011 8:38 AM > To: Michael Biebl > Cc: Mike Kazantsev; [email protected]; Rainer > Gerhards > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > > On F

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Michael Biebl [mailto:[email protected]] > Sent: Friday, March 11, 2011 8:45 AM > To: Rainer Gerhards > Cc: [email protected] > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > > 2011/3/11 Rainer Gerhards : > > > > So is

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Michael Biebl [mailto:[email protected]] > Sent: Friday, March 11, 2011 8:20 AM > To: Rainer Gerhards > Cc: Andrey Borzenkov; Mike Kazantsev; systemd- > [email protected] > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > > 2011

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Rainer Gerhards
> -Original Message- > From: Michael Biebl [mailto:[email protected]] > Sent: Friday, March 11, 2011 8:04 AM > To: Andrey Borzenkov > Cc: Mike Kazantsev; [email protected]; Rainer > Gerhards > Subject: Re: [systemd-devel] systemd-logger and external syslog daemon > > 201

Re: [systemd-devel] systemd-logger and external syslog daemon

2011-03-11 Thread Andrey Borzenkov
On Fri, Mar 11, 2011 at 11:55 AM, Rainer Gerhards wrote: >> -Original Message- >> From: Andrey Borzenkov [mailto:[email protected]] >> Sent: Friday, March 11, 2011 8:38 AM >> To: Michael Biebl >> Cc: Mike Kazantsev; [email protected]; Rainer >> Gerhards >> Subject: Re: [s