Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 418317

Summary: app-admin/syslog-ng-3.3.5 - add systemd support
Product: Gentoo Linux Reporter: Malte Starostik <bugs>
Component: Current packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED FIXED    
Severity: enhancement CC: alexander, herber, hollow
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 365937    
Attachments: enable systemd compatibility
syslog-ng-3.3.5-r2.ebuild

Description Malte Starostik 2012-05-31 00:12:38 UTC
$subject

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]
syslog-ng-3.3.5-r2.ebuild

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