Home/Support/Support Forum/How to Start an application during boot without login in Linux-Yocto?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to Start an application during boot without login in Linux-Yocto?

0 votes
I am currently trying to deploy a yocto based image (which I built using bitbake core-image-minimal) on my raspberry pi 3 that would allow me to run a simple "helloworld" application after boot. I want my board to display the helloworld text without me needing to login with root id. I am using "systemd" and have already tried solutions such as appending the "-a root" command in systemd/serial-getty@service file to try and auto login but it isn't working. Can anyone provide a solution for this?
asked Feb 10 in Linux by dilawaiz New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
You do not need to login to autostart the application. the startup procedure and scripts are following Debian: https://wiki.debian.org/BootProcess
You can either modify one of the existing scripts or create your own in /etc/init.d with symbolic link in /etc/rc5.d
Look at what we do for an FTP server:
ls -la /etc/rc5.d/
S80vsftpd -> ../init.d/vsftpd
answered Feb 16 by LeonidM Veteran of the Digi Community (4,457 points)
...