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