[syslog-ng] Problems creating syslog-ng.persit- file

Balazs Scheidler bazsi77 at gmail.com
Thu Mar 6 20:52:31 CET 2014


It should have reported the issue more explicitly though.

Did it offer any diagnosis when it failed?
On Mar 6, 2014 7:01 PM, "Tamayo, Andres" <Andres.Tamayo at viasat.com> wrote:

> That explains it, I was not aware that syslog-ng created a temporary file
> with the '-' suffix first.
>
> Thank you.
>
>
> -----Original Message-----
> From: Sandor Geller [mailto:Sandor.Geller at morganstanley.com]
> Sent: Thursday, March 06, 2014 6:29 AM
> To: Syslog-ng users' and developers' mailing list
> Subject: Re: [syslog-ng] Problems creating syslog-ng.persit- file
>
> syslog-ng first creates a tempfile having the '-' suffix then uses mmap().
> A quick googling showed that jffs2 doesn't support mmap()
>
> On Thu, Mar 6, 2014 at 2:10 PM, Tamayo, Andres <Andres.Tamayo at viasat.com>
> wrote:
> > Hello,
> >
> >
> >
> > I am having problems starting up syslog-ng when I specify the location
> > and name for its persist file.  Here is the way I am trying to start it:
> >
> >
> >
> > syslog-ng --cfgfile=/etc/syslog-ng.conf
> > --pidfile=/mnt/config/syslog-ng.pid
> > --persist-file=/mnt/config/syslog-ng.persist
> >
> >
> >
> > When I use this command, syslog-ng starts and creates the
> > /mnt/config/syslog-ng.persist file but it adds a '-' (dash) character
> > to the end of the filename, like this: /mnt/config/syslog-ng.persist-
> >
> >
> >
> > Then it executes right to the point where it is about to parse the
> > configuration file (I can see this in the debug logs) and stops.  The
> > command return value is 2.  I have seen syslog-ng return 0 on success
> > and 1 on failure but I do not know what is the meaning of 2 as the
> return value.
> >
> >
> >
> > I tried the same filename but a different location (/tmp) and it worked.
> > The filename did not have the appended '-' and syslog-ng returned 0.
> > The location I am trying to use is a flash memory mount that has JFFS2
> > file system.  I wonder if this is part of the problem.
> >
> >
> >
> > I tried to change the name of the persist file to something different
> like:
> > --persist-file=/mnt/config/something.else and the behavior is the
> > same.  The file is created like this: /mnt/config/something.else- and
> > syslog-ng returns 2.
> >
> >
> >
> > Does anybody know why the '-' is appended to the filename or what is
> > the meaning of a 2 return value?
> >
> >
> >
> > Thank you for your help.
> >
> >
> >
> >
> > ______________________________________________________________________
> > ________ Member info:
> > https://urldefense.proofpoint.com/v1/url?u=https://lists.balabit.hu/ma
> > ilman/listinfo/syslog-ng&k=OWT%2FB14AE7ysJN06F7d2nQ%3D%3D%0A&r=o7GqWGD
> > QQvuJbgvvR6T88i9N1FvBWrMPYBwWrEtosko%3D%0A&m=9U2fA5pAvv64ZBCDAlvDrsK4w
> > HZF1VKshd70qHQDB2Y%3D%0A&s=d3d699552d1d34bc83939ab579bfceddfa405638444
> > 627361f85d4b89634fa90
> > Documentation:
> > https://urldefense.proofpoint.com/v1/url?u=http://www.balabit.com/supp
> > ort/documentation/?product%3Dsyslog-ng&k=OWT%2FB14AE7ysJN06F7d2nQ%3D%3
> > D%0A&r=o7GqWGDQQvuJbgvvR6T88i9N1FvBWrMPYBwWrEtosko%3D%0A&m=9U2fA5pAvv6
> > 4ZBCDAlvDrsK4wHZF1VKshd70qHQDB2Y%3D%0A&s=0d6558d264a691bef96842ac394f8
> > e5c1a4ee6afb5261186a9a47e680d010f4a
> > FAQ:
> > https://urldefense.proofpoint.com/v1/url?u=http://www.balabit.com/wiki
> > /syslog-ng-faq&k=OWT%2FB14AE7ysJN06F7d2nQ%3D%3D%0A&r=o7GqWGDQQvuJbgvvR
> > 6T88i9N1FvBWrMPYBwWrEtosko%3D%0A&m=9U2fA5pAvv64ZBCDAlvDrsK4wHZF1VKshd7
> > 0qHQDB2Y%3D%0A&s=b3d5e07cc73d451c651ef2f26299087d15d71d408d6218f4346ca
> > 86ae015ca5c
> >
> >
>
>
> ______________________________________________________________________________
> 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/20140306/dfa25b72/attachment.htm 


More information about the syslog-ng mailing list