inetd line in rc.sysinit

In rc.sysinit there’s a commented out section:

Start some daemons…

#if test ! -d /dev/socket; then

echo “Starting inetd”

inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

#fi

The logic in it seems backwards though. Shouldn’t inetd be started if
/dev/socket does exist?

Start some daemons…

if test -d /dev/socket; then
echo “Starting inetd”
inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

fi

Will this properly enable inetd? Or have I missed some tricky reason why the
sense of the test is inverted?

Thanks,
Shaun

Nope, you are correct. I have pointed this out myself in the past and I
think they have said it would be fixed in a future release.

Jim

“Shaun Jackman” <sjackman@nospam.vortek.com> wrote in message
news:abul67$r9h$1@inn.qnx.com

In rc.sysinit there’s a commented out section:

Start some daemons…

#if test ! -d /dev/socket; then

echo “Starting inetd”

inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

#fi

The logic in it seems backwards though. Shouldn’t inetd be started if
/dev/socket does exist?

Start some daemons…

if test -d /dev/socket; then
echo “Starting inetd”
inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

fi

Will this properly enable inetd? Or have I missed some tricky reason why
the
sense of the test is inverted?

Thanks,
Shaun

Here is the complete thread. It was stated in the thread that it has been
fixed for 6.2.

HTH,

Jim

http://groups.google.com/groups?hl=en&threadm=a567i2%241j1%241%40inn.qnx.com
&rnum=1&prev=/groups%3Fq%3D%2B%2522rc%2Bsysinit%2522%2Bauthor:jlambert%2540f
uturex.com%26hl%3Den%26selm%3Da567i2%25241j1%25241%2540inn.qnx.com%26rnum%3D
1


“Jim Lambert” <jlambert@futurex.com> wrote in message
news:abup99$op$1@inn.qnx.com

Nope, you are correct. I have pointed this out myself in the past and I
think they have said it would be fixed in a future release.

Jim

“Shaun Jackman” <> sjackman@nospam.vortek.com> > wrote in message
news:abul67$r9h$> 1@inn.qnx.com> …
In rc.sysinit there’s a commented out section:

Start some daemons…

#if test ! -d /dev/socket; then

echo “Starting inetd”

inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

#fi

The logic in it seems backwards though. Shouldn’t inetd be started if
/dev/socket does exist?

Start some daemons…

if test -d /dev/socket; then
echo “Starting inetd”
inetd

echo “Starting pdebug at port 8000”

pdebug 8000 &

fi

Will this properly enable inetd? Or have I missed some tricky reason why
the
sense of the test is inverted?

Thanks,
Shaun

\