Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Auto-starting QNX4 Application
Ref. No. QNX.000005395
Category(ies) Configuration
Issue We're trying to implement auto-starting a QNX4 application; that is, when the user switches on the computer, we want to automatically log in as "root" and start-up our application software.

We know about the sysinit.<node> file and placed "login -f root" at the end of that file; and took out the photon shell startup stuff.  However, what we get is the message "getty:must be session leader!" and the root login fails.

Can you please point out what we're doing wrong here ?
Solution Set login to root, then either at the end of the /etc/config/sysinit.<node> (after the tinit line) or in the default /etc/profile file add the line to call the application and setup the environment before it.

The following line will work to login as root. Please note, to use login automatically root cannot have a password.

tinit -c "login -f root" -t /dev/con1 &

See Also: The entry for the tinit utility in the QNX OS Utilities Reference - N to Z.