Entware-for-kernel-3x / Entware-ng-3x

Ultimate repo for embedded devices
GNU General Public License v2.0
42 stars 5 forks source link

Package smcroute not starting #64

Closed sim2github closed 6 years ago

sim2github commented 6 years ago

Package: smcroute

[etc]# smcroute SMCRoute version 2.0.0 Usage: smcroute [OPTIONS]... [ARGS]...

-d Start daemon -n Run daemon in foreground -f FILE File to use instead of default /opt/etc/smcroute.conf -k Kill a running daemon

-h This help text -D Debug logging -v Show version and enable verbose logging

-a ARGS Add a multicast route -r ARGS Remove a multicast route

-j ARGS Join a multicast group -l ARGS Leave a multicast group

 <------------- INBOUND -------------->  <----- OUTBOUND ------>

-a [ ...] -r

-j -l [etc]# [etc]# smcroute -d [etc]# ps | grep smcroute 13655 admin 3088 S grep smcroute [etc]# smcroute -n [etc]# ps | grep smcroute 13748 admin 3088 S grep smcroute [etc]# smcroute -D [etc]# ps | grep smcroute 20551 admin 3088 S grep smcroute


### Platform:
QNAP TS-228
Firmware version: 4.3.4.0486 Build 20180215
CPU: ARMv7 Processor rev 5 (v7l)
zyxmon commented 6 years ago

You need to edit /opt/etc/smcroute.conf for your device before (auto)starting it with /opt/etc/init.d/Sxxx script

sim2github commented 6 years ago

This is first that i have done.

[root]# /opt/etc/init.d/S50smcroute start
 Starting smcroute...              failed.
[root]# cat /opt/etc/init.d/S50smcroute
#!/bin/sh

ENABLED=yes
PROCS=smcroute
ARGS="-d"
PREARGS=""                                                                 DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
. /opt/etc/init.d/rc.func
[root]#

Init script do the same as smcroute -d

I dont see any log or output so cant understand where is problem.

zyxmon commented 6 years ago

Probably your config is still invalid. One of the developers started smcroute without problems on his router (not on qnap NAS).

sim2github commented 6 years ago

Reset config to default - still get silence. If config not valid program must inform me where is mistake. Sources smcroute/src/log.c says that i can find it in syslog or stderr but i don't.

Will try compile from sources.

zyxmon commented 6 years ago

There is no default config, package comes with some example config to be adjusted. There is no syslog on qnap. You can try to install syslog-ng or similar package.

zyxmon commented 6 years ago

The syslog-ng shows on TS-128

Mar  7 17:51:39 QNAPD1 smcroute[16201]: SMCRoute version 2.0.0
Mar  7 17:51:39 QNAPD1 smcroute[16201]: Failed initializing IPv4 multicast routing API. Error 92: Protocol not available
Mar  7 17:51:39 QNAPD1 smcroute[16201]: Failed initializing IPv6 multicast routing API. Error 92: Protocol not available
Mar  7 17:51:39 QNAPD1 smcroute[16201]: Kernel does not support multicast routing.

Your kernel does not support smcroute

sim2github commented 6 years ago

Confirm. :( Thanks for help. 👍