$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
Created attachment 313649 [details, diff] enable systemd compatibility
Patch seem ok. 3.3.6 is going to drop soon so I think I'll pick this up for that version.
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.
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.
i don't think that USE=systemd is a good idea, for the same reasons we dropped logrotate, xinetd and other similar use flags ...
(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.
USE=systemd for installing systemd unit files is wrong and will likely be removed by systemd@ if found.
added to syslog-ng-3.4.1