it is the same i just made the script and run it and the it restarted my script mykikaconsole.sh but
it stuck again but localy all good and there is no process in top.
runnig the restart_mykika locally all works fine
I'm not sure why this would be problematic....
What about other services (for example, maybe uhttpd or dnsmasq or whatever)? Can you remotely restart those services? If so, maybe it is something specific with the mykika service.
idk if i can call it a service but it is just a ash script
i tried to stop start restart remotely (dnsmasq) all works fine
but why that is the question
the other odd thing is i connect to the host via ssh and execute /etc/init.d/mykika restart all works !
sleep $1 (20)
so my thoughts are that remotely script started but by the time it is actually doing somthing the remote root alredy disconected so the procces of script is stoping
But the thing is i need this delay , my script manages hostapd so i need to start script as later as posible
and i decided to give up on that and made 10 second deley before start so i had to put sleep 12 for 2 second for exucute full script and then remote ssh disconects (after script fully started!)