Auto start application after boot up

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://forums.digi.com/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

create your startup script in /etc/init.d/somescript
create a symbolic link in /etc/rcX.d/ etc…
look for vsftpd as an example

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?

Hi:
I got it working. Thanks

Simon