I have asus ac86u with asusmerlin firmware 386.3_2
Why does after install asus merlin scribe syslog-ng does not added to autostart?
After reboot router I must start scribe syslog-ng manually every time becouse it is not running.
How do add asus merlin scribe syslog-ng to autostart?
I have asus ac86u with asusmerlin firmware 386.3_2
Why does after install asus merlin scribe syslog-ng does not added to autostart?
After reboot router I must start scribe syslog-ng manually every time becouse it is not running.
How do add asus merlin scribe syslog-ng to autostart?
Syslog-ng starts with the other entware scripts (S01 in this case), and entware is triggered by the diversion script (whether diversion is running or not) which runs from post-mount.
But it starts okay if you run scribe start in a terminal?
So check that S01syslog-ng is in /opt/etc/init.d, as well as rc.func.syslog-ng. Check that /jffs/scripts/post-mount has a line calling /jffs/addons/diversion/mount-entware.div. Check that both are executable.
Are you running any other amtm scripts? Diversion?
If you look in the system log after a reboot, when it hasn't started, there should be a line after post-mount runs where klogd and syslogd exit and syslog-ng starts. Is there an error message there? It should look something like this:
Code:
Sep 21 08:14:50 RT-AC86U fs at /dev/sda1 mounted on /tmp/mnt/Cruzer.
Sep 21 08:14:50 RT-AC86U kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: user_xattr
Sep 21 08:14:50 RT-AC86U custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/Cruzer)
Sep 21 08:14:50 RT-AC86U kernel: Adding 2097148k swap on /tmp/mnt/Cruzer/myswap.swp. Priority:-1 extents:15 across:2424832k
Sep 21 08:14:50 RT-AC86U Diversion: Starting Entware and Diversion services on /tmp/mnt/Cruzer
Sep 21 08:14:50 RT-AC86U kernel: klogd: exiting
Sep 21 08:14:50 RT-AC86U syslogd exiting
Sep 21 08:14:50 RT-AC86U syslog-ng[8335]: syslog-ng starting up; version='3.33.2
Sep 21 08:14:50 RT-AC86U elorimer: Started haveged from /jffs/scripts/post-mount.
You can see the starting sequence. The USB stick is mounted; post-mount is triggered; that includes starting the swap file, then triggering the mount-entware.div script; then entware starts and fires up S01syslog-ng, which in turn calls rc.func.syslog-ng to kill klogd and syslogd and starts syslog-ng. I included the last line as it moves on to S02, etc.
If scribe is running, it will be /opt/var/log/messages.
If scribe is not running, then it is /tmp/syslog.log
It looks to me like your problem is that entware is never called on boot to start the Sxx packages. You might try reinstalling entware from amtm and see if that fills in the missing bits. @thelonelycoder built in impressive self-healing capabilities.
That isn't going to get you fully on the same page with the other scripts. It won't start your S99 package, for example, and if later you add other packages they won't auto start.