Home/Support/Support Forum/Auto start application after boot up
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Auto start application after boot up

0 votes
I have a script that will launch an Application after boot. The script work with terminal but never launch after unit start up (connectcore 6 plus dev kits)

May i know

a) where the script should be located

/etc/rc.d (i read from this

https://www.digi.com/support/forum/73118/script-application-automaticaly-once-linux-boot-finished )



b) A window with Digi Logo will be usually launch (i guess is a weston compositor ?), can it be bypass and boot straight to my application?


asked Sep 28, 2021 in Linux by simonongsk New to the Community (4 points)

Please log in or register to answer this question.

2 Answers

0 votes
create your startup script in /etc/init.d/somescript
create a symbolic link in /etc/rcX.d/ etc...
look for vsftpd as an example
answered Sep 30, 2021 by LeonidM Veteran of the Digi Community (4,454 points)
   I did this a while back. The unit will still boot to a window (weston, i think) with a DIGI logo. My script is "startApp.sh", and here are the content

  GNU nano 4.4                      startApp.sh                                 

do_start() {
    /opt/viv_samples/vdk/cover_flow &

do_stop() {
    killproc cover_flow

case "$1" in
    echo "Starting cover_flow app"
    echo "Stopping cuteradio app"
    echo "Restarting cover_flow app"
    sleep 1
    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
    exit 1

Exit 0

still nothing. The Debug Console showed:

error: XDG_RUNTIME_DIR not set in the environment.
vdk_create_display(955): wl_display_connect failed
Starting tcf-agent: OK

Any comment?
0 votes
I got it working. Thanks

answered Oct 11, 2021 by simonongsk New to the Community (4 points)