
QNX BACKGROUND INFORMATION
USING THE SYSTEM INITIALIZATION FILE
I-E96-107-2N
D - 5
Starting a name
Server
At least one machine in the network must run the global name
server. You could start the name server on this machine if it is
not rebooted frequently:
nameloc &
You may also run “nameloc” on other nodes (up to a total of
ten) in order to provide redundancy in case one node running
“nameloc” fails.
Starting a terminal
daemon
The following line starts a login on the first console and arms
all other consoles:
tinit -T /dev/con* -t /dev/con1 &
While it is not mandatory, almost all installations use the
“tinit” utility. Hence system initialization files provided by QNX
contain “tinit”.
NOTE: When it is included, “tinit” must be the last command exe-
cuted in the system initialization file.
Optional Services
You can add many other services to your system initialization
file. You should add these services just before the line contain-
ing the “tinit” command. The following examples show com-
monly used optional services. Note that these utilities typically
support common-line options to modify their behavior-these
options are explained in the documentation for each utility.
Defining
environment
variables
Define any environment variables you wish inherited by all
processes started in the system initialization file:
export var=value
The EXPORT command is described under the “sh” command
in the
QNX4 Utilities Reference.
Starting a floppy driver
Start a local floppy driver (if the QNX file system is running
locally, do not include the first line):
Fsys &
Fsys.floppy &
If a floppy driver is running, you can use the “vol” and “pax”
utilities to access the block special file (e.g., “/dev/fd0”). If you
want to access it as a QNX file system, you must mount it as
such (we recommend you use “pax” to transport files between
QNX files ystem):
mount /dev/fd0 /fd0