Inetd, Mounts

Can anyone help me where to start up inetd and fs-nfs? in QNX4 I had a
netstart file under /etc which would start the TCP/IP, mount my NFS drives,
start inetd…ie. network stuff. Where should this live in QNX6? Thanks
in advance

Jeff

Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t seem
to be starting. The rc.sysinit shows ~ line 54:

#Start some daemons…
if test ! -d /dev/socket; then
echo “Starting inetd”
inetd
echo “Starting fs-nfs2”
fs-nfs2

echo “Starting pdebug at port 8000”

pdebug 8000 &

fi

I think that this instead should be:
if test -d /dev/socket; then

Thanks again.

“Davide Ancri” <no.more.spam@nowhere.org> wrote in message
news:3C470857.5232D184@nowhere.org

Jeff Holtz wrote:

Can anyone help me where to start up inetd and fs-nfs? in QNX4 I had a
netstart file under /etc which would start the TCP/IP, mount my NFS
drives,
start inetd…ie. network stuff. Where should this live in QNX6?
Thanks
in advance

Jeff

/etc/rc.d/rc.sysinit

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • email: davidea at prisma-eng dot it
    ------------------------------------------------------------/

Jeff Holtz wrote:

Can anyone help me where to start up inetd and fs-nfs? in QNX4 I had a
netstart file under /etc which would start the TCP/IP, mount my NFS drives,
start inetd…ie. network stuff. Where should this live in QNX6? Thanks
in advance

Jeff

/etc/rc.d/rc.sysinit

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • email: davidea at prisma-eng dot it
    ------------------------------------------------------------/

“Jeff Holtz” <holtzj@mediaone.net> wrote in message
news:a270g7$n3r$1@inn.qnx.com

Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t
seem
to be starting. The rc.sysinit shows ~ line 54:

Hi Jeff, checking out QNX6 -)

I try to stay away from modifying system files (got bitten).
Instead you could created the file /etc/rc.d/rc.local
(don’t forget to chmod +x it) then add in that file
what ever you want.

The file will get invoked by the standard start up.

Yep. I’ve finally won the war to move up to POSIX SAFE OS and I’m starting
the porting. Helps when the only option for FireWire is on Neutrino. That
or we write our own.
Anyways I did the ol’ rc.local and it worked. Now I’ve got another problem:

I want to have my alias’s and bindings take effect when I start a pterm
session. Right now my .profile has the following:
export ENV=/home/jbh/.kshrc
and then in my .kshrc file I have a bunch of alias’s and a few bind command,
mainly to enable TAB as the autocomplete and TAB-TAB as the complete-list.

Although now when I perform a make, it tries to execute the .kshrc it looks
like because I get the following errors:
/bin/sh: /home/jbh/.kshrc[17] bind: cannot bind, not a tty

Any ideas?


“Mario Charest” <goto@nothingness.com> wrote in message
news:a27ece$3nf$1@inn.qnx.com

“Jeff Holtz” <> holtzj@mediaone.net> > wrote in message
news:a270g7$n3r$> 1@inn.qnx.com> …
Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t
seem
to be starting. The rc.sysinit shows ~ line 54:


Hi Jeff, checking out QNX6 -)

I try to stay away from modifying system files (got bitten).
Instead you could created the file /etc/rc.d/rc.local
(don’t forget to chmod +x it) then add in that file
what ever you want.

The file will get invoked by the standard start up.

\

Yep. I’ve finally won the war to move up to POSIX SAFE OS and I’m starting
the porting. Helps when the only option for FireWire is on Neutrino. That
or we write our own.
Anyways I did the ol’ rc.local and it worked. Now I’ve got another problem:

I want to have my alias’s and bindings take effect when I start a pterm
session. Right now my .profile has the following:
export ENV=/home/jbh/.kshrc
and then in my .kshrc file I have a bunch of alias’s and a few bind command,
mainly to enable TAB as the autocomplete and TAB-TAB as the complete-list.

Although now when I perform a make, it tries to execute the .kshrc it looks
like because I get the following errors:
/bin/sh: /home/jbh/.kshrc[17] bind: cannot bind, not a tty

Any ideas?


“Mario Charest” <goto@nothingness.com> wrote in message
news:a27ece$3nf$1@inn.qnx.com

“Jeff Holtz” <> holtzj@mediaone.net> > wrote in message
news:a270g7$n3r$> 1@inn.qnx.com> …
Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t
seem
to be starting. The rc.sysinit shows ~ line 54:


Hi Jeff, checking out QNX6 -)

I try to stay away from modifying system files (got bitten).
Instead you could created the file /etc/rc.d/rc.local
(don’t forget to chmod +x it) then add in that file
what ever you want.

The file will get invoked by the standard start up.

\

Jeff Holtz <holtzj@mediaone.net> wrote:

Although now when I perform a make, it tries to execute the .kshrc it looks
like because I get the following errors:
/bin/sh: /home/jbh/.kshrc[17] bind: cannot bind, not a tty

case $- in
i)

Interactive shell

set -o emacs
bind ^i=complete
bind ^z=list
alias cls=‘print \f’
alias lf=‘ls -F’
;;
esac
alias mips-gdb=‘ntomips-gdb -x /home/bstecher/.mgdbinit’
alias ppc-gdb=‘ntoppc-gdb -x /home/bstecher/.pgdbinit’
alias x86-gdb=‘ntox86-gdb -x /home/bstecher/.xgdbinit’


Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Yep. I’ve finally won the war to move up to POSIX SAFE OS and I’m starting
the porting. Helps when the only option for FireWire is on Neutrino. That
or we write our own.
Anyways I did the ol’ rc.local and it worked. Now I’ve got another problem:

I want to have my alias’s and bindings take effect when I start a pterm
session. Right now my .profile has the following:
export ENV=/home/jbh/.kshrc
and then in my .kshrc file I have a bunch of alias’s and a few bind command,
mainly to enable TAB as the autocomplete and TAB-TAB as the complete-list.

Although now when I perform a make, it tries to execute the .kshrc it looks
like because I get the following errors:
/bin/sh: /home/jbh/.kshrc[17] bind: cannot bind, not a tty

Any ideas?


“Mario Charest” <goto@nothingness.com> wrote in message
news:a27ece$3nf$1@inn.qnx.com

“Jeff Holtz” <> holtzj@mediaone.net> > wrote in message
news:a270g7$n3r$> 1@inn.qnx.com> …
Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t
seem
to be starting. The rc.sysinit shows ~ line 54:


Hi Jeff, checking out QNX6 -)

I try to stay away from modifying system files (got bitten).
Instead you could created the file /etc/rc.d/rc.local
(don’t forget to chmod +x it) then add in that file
what ever you want.

The file will get invoked by the standard start up.

\

“Jeff Holtz” <holtzj@mediaone.net> wrote in message
news:a2a4p9$2dg$1@inn.qnx.com

Yep. I’ve finally won the war to move up to POSIX SAFE OS and I’m
starting
the porting.

Good for you.

However wasn’t QNX sales people touting that QNX4 was POSIX.
Oh we don’t want to get in too that don’t we, hihi

  • Mario

Could be a bug in the script.

Jeff Holtz <holtzj@mediaone.net> wrote:

Thanks Davide!

I found the inetd in the /etc/rc.d/rc.sysinit file and it was commented
out. I simply uncommneted it and added fs-nfs2 so that hopefully I can
mount NFS drives in my /etc/rc.d/rc.local file. BUT the inetd doesn’t seem
to be starting. The rc.sysinit shows ~ line 54:

#Start some daemons…
if test ! -d /dev/socket; then

Remove the “!” and try again.

echo “Starting inetd”
inetd
echo “Starting fs-nfs2”
fs-nfs2

echo “Starting pdebug at port 8000”

pdebug 8000 &

fi

I think that this instead should be:
if test -d /dev/socket; then

Thanks again.

“Davide Ancri” <> no.more.spam@nowhere.org> > wrote in message
news:> 3C470857.5232D184@nowhere.org> …
Jeff Holtz wrote:

Can anyone help me where to start up inetd and fs-nfs? in QNX4 I had a
netstart file under /etc which would start the TCP/IP, mount my NFS
drives,
start inetd…ie. network stuff. Where should this live in QNX6?
Thanks
in advance

Jeff

/etc/rc.d/rc.sysinit

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • email: davidea at prisma-eng dot it
    ------------------------------------------------------------/


Kirk Russell