Network Access disabled for Autorun Application at the Start up in Linux

Hi,

I am using the “Apalis-iMX6_Reference-Multimedia-Image-Tezi_5.4.0+build.11”.
I was able to autorun my QT app using this How to Autorun Application at the Start up in Linux | Toradex Developer Center but my app has network access disabled.

I found someone that faced similar issues as well and tested it:

But my app still has network access disabled.

*After testing a few times, i realized that it work sometimes but most of the time it says network access disabled during startup

Hi @Raymond , please try with network-online.target.
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

Hi @benjamin.tx ,

I have tried “network-online.target” and it works. The only downside is that it takes 2 mins to open the app. It is much more faster If i manually login as root and open the app. May i know if there is any solution for this? Like example changing the .sh file.

image

Hi @benjamin.tx ,

Thanks for the help. After reading NetworkTarget, it says “network-online.target” requires delay. The alternative approach is using “network.target” and give my app the ability to set network configuration.