Home
Products
Trainings
Support
Blogs
More
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.
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
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