Undocumented feature of sinit utility (QNX4)

Hi!
I discovered an interesting and very usefull
property of sinit - system initialization - utility,
which I have not found in any documentation.
Normally sinit is the last call in the boot-image of a QNX4
system and it sets up the initial operating system environment.
With -r option you can define an alias prefix for the
filesystem root.
I have a diskless PC (say node 3) with a flash containing
a boot image only. I wanted to implement a primary/secondary
file-server system, so I tried the sinit call with the following
arguments:

sinit -r //1/ -r //2/ TERM=qnx

This implementation works the following way:
sinit tries to mount the filesytem of node 1 (primary file-server) for
30 seconds,if it is unsuccesfull, sinit tries to mount the filesystem
of node 2 (secondary file-server) for 30 seconds, then the first node
again till one of the filesystems is mounted succesfully. With this
implementation I could realise a typical primary/secondary
server system, and this property of sinit not only usefull but
sometimes very important. I do not know, wether it is just a hidden,
not dokumented feature of sinit or I can find it somewhere in QNX4
documentation.



| | | | | |_ |_ || || |
|| || |_ | | | | | | |_

Jozsef Pal, Ph.D.El.Eng. Voice: +36 1 457-82-26
VEIKI Research Institute Fax: +36 1 457-82-28
Division for Control Engineering Mobil: +36 30 960-69-23
H-1251 Budapest, P.O.B. 80. Email: j.pal@veiki.hu
HUNGARY Web: http://www.veiki.hu

That would be an extreamly useful feature. They should have documented it.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Jozsef Pal” <j.pal@veiki.hu> wrote in message
news:3bfa0162.1319928@inn.qnx.com

Hi!
I discovered an interesting and very usefull
property of sinit - system initialization - utility,
which I have not found in any documentation.
Normally sinit is the last call in the boot-image of a QNX4
system and it sets up the initial operating system environment.
With -r option you can define an alias prefix for the
filesystem root.
I have a diskless PC (say node 3) with a flash containing
a boot image only. I wanted to implement a primary/secondary
file-server system, so I tried the sinit call with the following
arguments:

sinit -r //1/ -r //2/ TERM=qnx

This implementation works the following way:
sinit tries to mount the filesytem of node 1 (primary file-server) for
30 seconds,if it is unsuccesfull, sinit tries to mount the filesystem
of node 2 (secondary file-server) for 30 seconds, then the first node
again till one of the filesystems is mounted succesfully. With this
implementation I could realise a typical primary/secondary
server system, and this property of sinit not only usefull but
sometimes very important. I do not know, wether it is just a hidden,
not dokumented feature of sinit or I can find it somewhere in QNX4
documentation.



| | | | | |_ |_ || || |
|| || |_ | | | | | | |_

Jozsef Pal, Ph.D.El.Eng. Voice: +36 1 457-82-26
VEIKI Research Institute Fax: +36 1 457-82-28
Division for Control Engineering Mobil: +36 30 960-69-23
H-1251 Budapest, P.O.B. 80. Email: > j.pal@veiki.hu
HUNGARY Web: > http://www.veiki.hu