/etc/netstart

start TCP/IP services

Name:

/etc/netstart

Description:

The netstart file is a shell script that's used to start a Socket/Socklet manager, configure interfaces, and start any desired TCP/IP daemons.

The file is usually invoked at boot time by the /etc/config/sysinit.node file, but may also be run from the shell command line (so you don't have to reboot).

Here's a typical example file that should be optimized on a per-system basis:

#!/bin/sh

  export SOCK=$NODE
  /bin/slay -f Socket Socklet
  /bin/prefix -D /dev/console >/dev/null 2>&1
  /bin/prefix -A /dev/console=/dev/con1

  # start up Socket: assume hostnames are defined as 'node#'
  # Note:  if not using NFS, use Socklet instead
  /usr/ucb/Socket   node$NODE &

  # Note:  assuming ethernet interface on logical LAN 1
  /usr/ucb/ifconfig en1 node$NODE up 
  /usr/ucb/ifconfig lo0 localhost up 
  /usr/bin/syslogd

  # Note:  to act as an NFS server, uncomment the next line
  # /etc/nfsstart

  # Note:  to act as a TCP/IP server, uncomment the next line
  # /usr/ucb/inetd

See also:

ifconfig, Socket, Socklet, syslogd (QNX OS Utilities Reference)