What's new

Scribe asus merlin scribe autostart

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

tm4ig

Occasional Visitor
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?
In router gui Administration/System
Is this set to: Enable JFFS custom scripts and configs =Yes ?
 
Uninstall it and then reinstall with amtm.

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.
 
I already have reinstalled scribe but this has not helped me
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.
 
Last edited:
But it starts okay if you run scribe start in a terminal?
I successfully manually start syslog-ng with with amtm utility (amtm => 5 open scribe => rs)

So check that S01syslog-ng is in /opt/etc/init.d
S01syslog-ng and rc.func.syslog-ng executable files there are in /opt/etc/init.d/

Code:
@RT-AC86U-C920:/tmp/home/root# ls -lh /opt/etc/init.d/

-rwxr-xr-x    1 censored    root         250 Oct 29 21:27 S01syslog-ng
-rwxr-xr-x 1 censored root 314 Aug 19 12:10 S99sysstat
-rw-r--r-- 1 censored root 2.8K Jul 16 23:55 rc.func
-rw-r--r-- 1 censored root 1.1K Oct 29 21:27 rc.func.syslog-ng
-rwxr-xr-x 1 censored root 966 Jul 16 23:55 rc.unslung

but there is no line calling /jffs/addons/diversion/mount-entware.div in /jffs/scripts/post-mount
Code:
@RT-AC86U-C920:/tmp/home/root# cat  /jffs/scripts/post-mount
#!/bin/sh
swapon /tmp/mnt/sda/myswap.swp # Added by amtm
if [ -d "$1/entware" ] ; then
  ln -nsf $1/entware /tmp/opt
fi
/jffs/scripts/uiScribe startup "$@" & # uiScribe
cru a logrotate "5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1" # added by scribe

/jffs/addons/diversion folder also is not exists
Code:
@RT-AC86U-C920:/tmp/home/root# ls -lh /jffs/addons/
drwxrwxrwx    3 censored    root           0 Oct 28 21:56 amtm
-rw-rw-rw-    1 censored    root          61 Oct 28 21:56 custom_settings.txt
drwxr-xr-x    2 censored    root           0 Oct 28 21:56 shared-jy
drwxrwxrwx    2 censored    root           0 Oct 30 23:25 shared-whitelists
drwxrwxrwx    2 censored    root           0 Oct 29 21:31 uiScribe.d

Are you running any other amtm scripts?
I use Skynet, scribe, uiScribe, Entware packages, Disk check script, Swap file

If you look in the system log after a reboot
Where is location of system log?

 
Where is location of system log?
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.
 
in /opt/var/log/messages


Oct 29 21:27:35 kernel: klogd started: BusyBox v1.25.1 (2021-08-06 17:48:21 EDT)
Oct 29 21:27:39 kernel: klogd: exiting
Oct 29 21:27:39 RT-AC86U-C920 uiScribe: Mounting WebUI page for uiScribe
Oct 29 21:27:39 RT-AC86U-C920 uiScribe: Mounted uiScribe WebUI page as Main_LogStatus_Content.asp
Oct 29 21:27:39 RT-AC86U-C920 scribe: syslog-ng.conf version number updated (3.33)!
Oct 29 21:27:41 RT-AC86U-C920 Skynet: [#] 31862 IPs (+0) -- 1740 Ranges Banned (+0) || 77 Inbound -- 0 Outbound Connections Blocked! [settings] [1s]
Oct 29 21:27:41 RT-AC86U-C920 uiScribe: Mounting WebUI page for uiScribe
Oct 29 21:27:41 RT-AC86U-C920 uiScribe: Mounted uiScribe WebUI page as Main_LogStatus_Content.asp
Oct 29 21:28:03 RT-AC86U-C920 dropbear[5608]: Exit (censored) from <192.168.1.123:39310>: Disconnect received
Oct 29 21:28:07 RT-AC86U-C920 rc_service: httpd 1573:notify_rc reboot
Oct 29 21:28:07 RT-AC86U-C920 custom_script: Running /jffs/scripts/service-event (args: reboot)
...
 
How Can I to reinstall entware from amtm?
Hmm. Good question. One way might be to install Diversion Lite, and then disable it if you don't want it.
 
I have created /jffs/scripts/scribe-start file with "sh /jffs/scripts/scribe start" record and scribe with syslog-ng autostart works
 
I have created /jffs/scripts/scribe-start file with "sh /jffs/scripts/scribe start" record and scribe with syslog-ng autostart works
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.

Plus, how does scribe-start itself get called?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top