etc/rc.local doesn't work o omega2+
Hi. I develop python3 codes on omega2+. I want to run my codes on boot. I updated my omega2+ to 0.3.2 b233 version. Everything is allright but rc.local didn't work. I couldn't start my app on boot.
Omega2+ waits to hit enter to pass post screen.
If I solve this, I design a vehicle tracking app with gps/gnss location.
@Fikret-UYSAL rc.local does work but I wonder why you would not use an init.d script instead.
@crispyoz I am newbee in linux. Mostly work on windows.
I don't know how it sould be done.
Can you help with this.
@Fikret-UYSAL Take a look in /etc/init.d directory for the init scripts, an easy example is rcpd script because it is quite a simple script. These scripts are executed by a process named procd, so take a look at the docs on opewrt.org for procd. Here's a simple example to get you going:
@crispyoz thanks a lot.
@crispyoz, I read article.
I tried on several times. Service has been created by didn't work.
Also rc.local didn't work.
I tried it two different omega2+. They are same version b233.
@Fikret-UYSAL can you post your script please.
Also assuming your script is named "myscript" did you enable it? /etc/init.d/myscript enable