[Bug 656104] New: syslog daemon -- socket activation / systemd integration
https://bugzilla.novell.com/show_bug.cgi?id=656104 https://bugzilla.novell.com/show_bug.cgi?id=656104#c0 Summary: syslog daemon -- socket activation / systemd integration Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: mt@novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de CC: radmanic@novell.com, werner@novell.com, pczanik@genesi-usa.com, kasievers@novell.com Found By: --- Blocker: --- Implement systemd socket activation for all 3 syslog daemons we support: syslog-ng, syslogd and rsyslogd[¹].
From http://lists.opensuse.org/opensuse-factory/2010-11/msg00566.html: [...] syslog is very special in that context, like udev or D-Bus are special for systemd.
Systemd needs to race-free pass over its own /dev/log socket that connects to the kernel buffer, hence the requirement for syslog. With that infrastructure, you can even replace any running syslog, even with a different product, any time, without ever losing a single message. But it needs to support systemd's socket activation. Most other stuff is just a normal service. [...] I'm setting the Severity to critical, because implementing it makes it possible to replace the syslog daemon without to loose messages. [¹] Patches for rsyslogd implementing socket activation are available, as referenced by Kay: http://lists.opensuse.org/opensuse-factory/2010-11/msg00564.html http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=41327992680cfb8dd602ea9... http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=8e51241a50531dc10d00e54... It should be quite straight forward to implement this for the another syslog daemons as well. See also feature request: #310327: use systemd session manager instead of SysVinit/upstart -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c1
--- Comment #1 from Marius Tomaschewski
#310327: use systemd session manager instead of SysVinit/upstart
Url is: https://features.opensuse.org/310327 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c2
--- Comment #2 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c4
--- Comment #4 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c5
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c6
--- Comment #6 from Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c7
--- Comment #7 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c8
--- Comment #8 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c9
--- Comment #9 from Kay Sievers
... it should be reconsidered ... beside this I'd like also to have the manual page around as mentioned in sd-daemon.h:
$ rpm -ql systemd | grep fds /usr/share/man/man3/sd_listen_fds.3.gz :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c10
--- Comment #10 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c11
--- Comment #11 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c12
--- Comment #12 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c13
--- Comment #13 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c14
--- Comment #14 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c15
--- Comment #15 from peter czanik
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c16
--- Comment #16 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c17
--- Comment #17 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c18
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c19
--- Comment #19 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c20
--- Comment #20 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c21
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c22
--- Comment #22 from Marius Tomaschewski
Btw: How about a small library with an actual systemd socket activation code instead of including the code several times?
We have bug 656259 open because of this. I don't think it makes sense to reimplement it and provide own library... same as I don't think this gets fixed for 11.4 :-( What would make sense is to try to add the functionality to forward [inherit] the sockets to a child into upstream code. Further, also to add an option to sd_listen_fds to not set FD_CLOEXEC flags (or add a variant of the function avoiding this), so we can use these functions in startproc and in fork code of the daemons...
Maybe also having cgroup support for start/killproc would also an option. What do you think?
This sounds like a good idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c23
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c24
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c25
--- Comment #25 from Dr. Werner Fink
What would make sense is to try to add the functionality to forward [inherit] the sockets to a child into upstream code. Further, also to add an option to sd_listen_fds to not set FD_CLOEXEC flags (or add a variant of the function avoiding this), so we can use these functions in startproc and in fork code of the daemons...
I could try to remove FD_CLOEXEC in closefds() as I use this function to set this flag for all other file descriptors. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c26
--- Comment #26 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c27
--- Comment #27 from Kay Sievers
I'll not make anything from now on until the systemd maintainer starts working himself a bit. It is "his" feature.
What do you mean? "I" don't need any feature from syslog. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=656104
https://bugzilla.novell.com/show_bug.cgi?id=656104#c28
--- Comment #28 from Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com