Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418317 - app-admin/syslog-ng-3.3.5 - add systemd support
Summary: app-admin/syslog-ng-3.3.5 - add systemd support
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mr. Bones. (RETIRED)
Keywords: PATCH
Depends on:
Blocks: systemd-consumers
  Show dependency tree
Reported: 2012-05-31 00:12 UTC by Malte Starostik
Modified: 2013-05-10 22:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

enable systemd compatibility (syslog-ng-systemd.patch,1.14 KB, patch)
2012-05-31 00:13 UTC, Malte Starostik
Details | Diff
syslog-ng-3.3.5-r2.ebuild (syslog-ng-3.3.5-r2.ebuild,4.26 KB, text/plain)
2013-01-30 15:03 UTC, Mario Kicherer

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Starostik 2012-05-31 00:12:38 UTC

syslog-ng is systemd-enabled upstream, attached patch enables this functionality (socket activation and unit installation) and adds some blurb regarding the necessary configuration.

Reproducible: Always
Comment 1 Malte Starostik 2012-05-31 00:13:16 UTC
Created attachment 313649 [details, diff]
enable systemd compatibility
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2012-05-31 17:16:32 UTC
Patch seem ok.  3.3.6 is going to drop soon so I think I'll pick this up for that version.
Comment 3 Gergely Nagy 2012-07-16 09:20:39 UTC
FYI, with syslog-ng 3.3.6, the /dev/log => /run/systemd/journal/syslog replacement is not necessary (it will figure that out itself, and replace it automatically at run-time), but still recommended.

Even better, using the system() source results in a configuration that will work in either case, with or without systemd, without needing any change at all after that point.
Comment 4 Mario Kicherer 2013-01-30 15:03:22 UTC
Created attachment 337314 [details]

I modified the patch a little bit to make this conditional with a systemd useflag. I also added a patch for the service file that was necessary on my system.

I added the ebuild also to my anyc-overlay.
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2013-01-30 15:28:57 UTC
i don't think that USE=systemd is a good idea, for the same reasons we dropped logrotate, xinetd and other similar use flags ...
Comment 6 Mario Kicherer 2013-01-31 20:52:53 UTC
(In reply to comment #5)
> i don't think that USE=systemd is a good idea, for the same reasons we
> dropped logrotate, xinetd and other similar use flags ...

Okay, I would agree to that by now. But the patch is still required - at least on my system.
Comment 7 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-15 10:26:15 UTC
USE=systemd for installing systemd unit files is wrong and will likely be removed by systemd@ if found.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2013-05-10 22:39:14 UTC
added to syslog-ng-3.4.1