About 3 months ago, I rebooted my AX86U and noticed afterwards that syslog-ng was not logging correctly. The files were simply not being updated. Scribe status showed everything as working. Rather than investigate, I just did a scribe restart and the logging began working fine again.
The next time I rebooted (about 2 months ago), I again noticed syslog-ng was not updating files after the reboot. As before, Scribe status showed everything was fine, and a scribe restart fixed the problem.
I noticed it again this week, so I started investigating. I *think* I found the problem -- which is that (2) instances of syslog-ng are running after boot (I assume they are fighting over the message sources). But I can't figure out how it is getting started twice.
I added some ps | grep syslog-ng >>/jffs/testlog.log statements to services-start and firewall-start. At services-start time, there was no instance of syslog-ng. At firewall-start, there was still no syslog-ng process running. About 25 seconds later, there was a second firewall-start event -- and at that point, there were TWO syslog-ng processes (plus the two service supervisor processes) running.
Executing a scribe restart command killed both of those and created a single new syslog-ng process (plus the supervising process). After that, everything worked correctly (until the next reboot).
I uninstalled scribe and syslog-ng, using the uninstall command on the scribe menu. Rebooted, and there was no syslog-ng process running. Used AMTM to reinstall Scribe, with the default configuration. Rebooted, and the duplicate syslog-ng is back! As before, scribe restart kills both of them, starts up a new one, and everything works fine again.
What could be causing syslog-ng to be started twice? I have looked through all files in /jffs/scripts, looking for any reference to scribe or syslog-ng. The only relevant call is in service-event, where it belongs.
There's nothing in /etc/init.d calling scribe or syslog-ng. In /opt/init.d, I have rc.func.syslog-ng and S01syslog-ng files, both of which are freshly replaced by today's re-install of Scribe. Nothing else there seems to reference syslog-ng.
Any ideas what is happening here, or how to track it down?
I also see multiple instances of these processes. Is that normal?
The next time I rebooted (about 2 months ago), I again noticed syslog-ng was not updating files after the reboot. As before, Scribe status showed everything was fine, and a scribe restart fixed the problem.
I noticed it again this week, so I started investigating. I *think* I found the problem -- which is that (2) instances of syslog-ng are running after boot (I assume they are fighting over the message sources). But I can't figure out how it is getting started twice.
I added some ps | grep syslog-ng >>/jffs/testlog.log statements to services-start and firewall-start. At services-start time, there was no instance of syslog-ng. At firewall-start, there was still no syslog-ng process running. About 25 seconds later, there was a second firewall-start event -- and at that point, there were TWO syslog-ng processes (plus the two service supervisor processes) running.
Code:
3393 admin 13356 S {syslog-ng} supervising syslog-ng
3394 admin 374m S syslog-ng
3448 admin 13356 S {syslog-ng} supervising syslog-ng
3450 admin 344m S syslog-ng
Executing a scribe restart command killed both of those and created a single new syslog-ng process (plus the supervising process). After that, everything worked correctly (until the next reboot).
I uninstalled scribe and syslog-ng, using the uninstall command on the scribe menu. Rebooted, and there was no syslog-ng process running. Used AMTM to reinstall Scribe, with the default configuration. Rebooted, and the duplicate syslog-ng is back! As before, scribe restart kills both of them, starts up a new one, and everything works fine again.
What could be causing syslog-ng to be started twice? I have looked through all files in /jffs/scripts, looking for any reference to scribe or syslog-ng. The only relevant call is in service-event, where it belongs.
There's nothing in /etc/init.d calling scribe or syslog-ng. In /opt/init.d, I have rc.func.syslog-ng and S01syslog-ng files, both of which are freshly replaced by today's re-install of Scribe. Nothing else there seems to reference syslog-ng.
Any ideas what is happening here, or how to track it down?
I also see multiple instances of these processes. Is that normal?
Code:
7084 admin 3424 S N {taildnstotal-ca} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal-cache
7105 admin 3424 S N {taildnstotal-ca} /bin/sh /jffs/addons/uiDivStats.d/taildns.d/taildnstotal-cache
9529 admin 3556 S {uiDivStats} /bin/sh /jffs/scripts/uiDivStats querylog
16155 admin 3556 S {uiDivStats} /bin/sh /jffs/scripts/uiDivStats querylog
19540 admin 3556 S {uiDivStats} /bin/sh /jffs/scripts/uiDivStats querylog
29162 admin 3556 S {uiDivStats} /bin/sh /jffs/scripts/uiDivStats querylog