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
Hi:
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 )

or

/etc/init.d

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?

Regards

Simon
asked Sep 28 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 by LeonidM Veteran of the Digi Community (4,355 points)
Hi:
   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                                 
#!/bin/sh


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

do_stop() {
    killproc cover_flow
}

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

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
Hi:
I got it working. Thanks

Simon
answered Oct 11 by simonongsk New to the Community (4 points)
...