Solutions to your doubts are just one click away. Just select the appropriate category and ask questions. You can also reply to the answers you are already aware.
We tried the above step to run our script file at startup but we can't find "/lib/systemd/system/multi-user.target.wants/test.service" in our board. Can you please support.
@Anna Varghese can you tell me how you are booting, through sdcard boot or NOR flash boot?if you are booting from sdcard you need to follow above procedure
if you are booting from NOR flash, please follow below command:
had a script file in that i have commands for intialisation of can,wifi,etc..,How can i run that file automatically when the board is booted. I am doing booting using SD card so,where i need to place that script file?
if you want to run the "helloworld" binary as startup app in board.
copy the helloworld binary to "/home/root/" folder in the board.
$vi test.sh
add below lines in "test.sh" file and save it.
**********************************************
#!/bin/sh
/home/root/helloworld
$vi /etc/systemd/system/multi-user.target.wants/test.service
[Unit]
Description=Test application running
[Service]
Type=forking
ExecStart=/bin/sh /home/root/test.sh
[Install]
WantedBy=multi-user.target
$ln -s /etc/systemd/system/multi-user.target.wants/test.service /lib/systemd/system/multi-user.target.wants/
follow above once and update here
Can you please once check with anydesk or something like that? get-mobdro.com
It was offline
Share anydesk
Check using ps command
/home/root/test.sh
Please follow this text file, first try on the helloworld binary, if it works go for next step.
Have you followed text file
To run automatically... Already given the txt file to this ticket and. Where ever you copy your script file.. Just give that path in the service file
in shell script test.sh file just run your application for example ./helloworld
and copy the helloworld binary in /home/root/
Please follow below text file to startup the app automatically