[syslog-ng] No "-n" switch for syslog-ng?

P Levine nsane457 at gmail.com
Mon Feb 25 10:20:18 CET 2013


Here's the service file:

[Unit]
Description=System Logger Daemon
Documentation=man:syslog-ng(8)

[Service]
Sockets=syslog.socket
ExecStart=/usr/sbin/syslog-ng -F
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
Restart=on-failure

[Install]
WantedBy=multi-user.target
Alias=syslog.service


Also note, the line "About to execute /usr/sbin/syslog-ng -n" only shows up
in the journal in debug mode (i.e. LogLevel=debug is in system.conf).

I also grepped the source and found nothing to explain the 'n' flag.
 Nonetheless, the fact that it is displayed in the example file at
http://www.freedesktop.org/wiki/Software/systemd/syslog would make it a
strange coincidence.


On Sat, Feb 23, 2013 at 4:52 AM, Gergely Nagy <algernon at balabit.hu> wrote:

> P Levine <nsane457 at gmail.com> writes:
>
> > I've been getting many "syslog-ng.service start request repeated too
> > quickly..."
> > issues in systemd journal .
> > The syslog-ng service would always fail.
> > I noticed there seems to be a bug in which systemd executes syslog-ng
> with
> > the "-n" flag.
> >
> > I recently posted the bug here:
> > https://bugs.freedesktop.org/show_bug.cgi?id=61324
> >
> > After modifying lib/gprocess.c to accept "-n" in place of "-F",
> > recompiling, and reinstalling, the problem has disappeared and the
> syslog-ng
> > process remains up.
> >
> > Is this a systemd bug?
>
> Can you show your syslog-ng.service file? I've grepped through the
> systemd sources, and didn't find any sign of implicit -n (but I might
> have missed it too).
>
> > I have been googling for 2 days to see if it relates to any other bugs
> and
> > have found nothing. I just started using systemd 4 days ago and its my
> > impression that syslog-ng has supported systemd for some time. So, could
> > there be something on my end causing the issue?
>
> I'm fairly sure this is an issue with one of the unit files. But if it
> turns out that systemd does add an implicit -n under some circumstances,
> then syslog-ng should support that, for compatibility's sake.
>
> What OS are you running, by the way?
>
> --
> |8]
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130225/2ae3af6e/attachment.htm 


More information about the syslog-ng mailing list