How to start network service before login in apalis imx6q linux?

i have make changes in serial-getty@.service -------------------------------> ExecStart=-/sbin/agetty -a root -8 -L %I 115200 $TERM so that my board boot without asking password and i have add my application in profile.d so its running on boot up but problem is that internet connection is starts after application starts so its not working so how to enable network service (internet connection) before profile.d


You would need to write a systemd unit file for your application e.g. as explained in the following article on our developer website. Most likely something as follows in your unit file would work: