syslog-ng: alternative for logread
authorSergey Ponomarev <stokito@gmail.com>
Sat, 2 Mar 2024 19:30:41 +0000 (21:30 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 24 Nov 2024 10:10:10 +0000 (11:10 +0100)
commit641ec2b644489c0ac1820ecfac6441242010e26d
tree851efa5a7d991ab5a7cb8944cf4dfb14c71174c7
parent8afc26fafbd913d829734ab22fc09abaf8874ae8
syslog-ng: alternative for logread

When the syslog-ng installed it records all messages to /var/log/messages.
This makes the default OpenWrt's ubox /sbin/logread useless and return nothing.

The logread script was added to the syslog-ng as a shim.
It's based on `tail /var/log/messages` and repeats basic options that the ubox logread have.
The script is installed instead of the /sbin/logread and this is causes an error.

Instead install it to /usr/libexec/logread.sh and specify as an alternative /sbin/logread.

The ubox logread also needs to be made as alternative in /usr/libexec/logread-ubox.

So we need to give it a separate name.
The most simple and clear would be logread-shell or just logread.sh.

Suggested-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
admin/syslog-ng/Makefile
admin/syslog-ng/files/logread [deleted file]
admin/syslog-ng/files/logread.sh [new file with mode: 0644]