Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Trigger processes on QNX startup: (2 Items)
   
Trigger processes on QNX startup  
We are trying to find an approach for triggering processes on QNX startup. Basically, we have a couple of custom built 
binaries + the networking manager "bin/io-pkt-v6-hc" that we need to start after QNX has booted. (This network manager 
service isn't started after QNX has booted up in our image.)

Documentation is describing startup scripts, but just adding these to a buildfile doesn't seem to do work.
http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.building/topic/buildfiles/buildfile_structure.html

Any idea what could be missing here?
Re: Trigger processes on QNX startup  
Adding the script just adds a file to the image.

if you want it to be executed you have to add it to the .script block.

e.g.
[+script] .script = {
# Initialise the console
    procmgr_symlink ../../proc/boot/ldqnx-64.so.2 /usr/lib/ldqnx-64.so.2
    devc-sermx1 -e -F -S -c80000000 0x021E8000,59

    waitfor /dev/ser1 4

    reopen
    display_msg Welcome to QNX Neutrino 7.1 on the Elsinor Hamlet 2B ON2B (ARM Cortex-A9 MP Core)

    /script/my_script.sh & # <<<< execute my script.
    [+session] ksh /proc/boot/.console.sh &
}

[perms=0555] /script/my_script.sh={
#!/bin/sh
echo Hello World.
}