Hello guys,
I migrate from lede-17.01 to openwrt-18.06 and solving another problem:
I have write simple batch file in /etc/init.d/ to starting and stopping my project, which running as daemon
#!/bin/sh /etc/rc.common
START=100
STOP=1
USE_PROCD=1
PROG="marcon"
start_service() {
RESULT=`pgrep $PROG`
if [ "${RESULT:-null}" = null ]; then
$PROG -daemon
fi
}
stop_service() {
killall -SIGINT $PROG
}
reload_service() {
killall -SIGHUP $PROG
}
but in openwrt-18.04 when I write to terminal on mikrotik device "service marcon start" my program is started, but then when I write "service marcon stop" or "service marcon start" or "service marcon reload" the terminal simply freezes until the program terminates through another terminal. What I doing wrong?