home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / ROOT_GZ / root / etc / rc.d / rc.inet2 < prev    next >
Encoding:
Text File  |  1995-06-26  |  2.2 KB  |  123 lines

  1. #! /bin/sh
  2. #
  3. # rc.inet2    This shell script boots up the entire INET system.
  4. #        Note, that when this script is used to also fire
  5. #        up any important remote NFS disks (like the /usr
  6. #        distribution), care must be taken to actually
  7. #        have all the needed binaries online _now_ ...
  8. #
  9. # Version:    @(#)/etc/rc.d/rc.inet2    2.18    05/27/93
  10. #
  11. # Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  12. #
  13.  
  14. # Constants.
  15. NET="/usr/sbin"
  16. IN_SERV="lpd crond"
  17. LPSPOOL="/var/spool/lpd"
  18. PMAP="no"
  19. # At this point, we are ready to talk to The World...
  20. echo "Mounting remote file systems..."
  21. /sbin/mount -avt nfs        # This may be our /usr runtime!!!
  22.  
  23. echo -n "Starting daemons:"
  24. # Start the SYSLOGD/Klogd daemons.  These must come first.
  25. if [ -f ${NET}/syslogd ]
  26. then
  27.  echo -n " syslogd"
  28.  ${NET}/syslogd
  29. # echo -n " klogd"
  30. # ${NET}/klogd
  31. fi
  32.  
  33. # Start the SUN RPC Portmapper.
  34. if [ -f ${NET}/rpc.portmap ]
  35. then
  36.  echo -n " portmap"
  37.  ${NET}/rpc.portmap
  38.  PMAP="yes"
  39. fi
  40.  
  41. # Start the INET SuperServer
  42. if [ -f ${NET}/inetd ]
  43. then
  44.  echo -n " inetd"
  45.  ${NET}/inetd
  46. else
  47.  echo "no INETD found.  INET cancelled!"
  48.  exit 1
  49. fi
  50.  
  51. # Start the NAMED/BIND name server.
  52. # if [ -f ${NET}/named ]
  53. # then
  54. #  echo -n " named"
  55. #  ${NET}/named
  56. # fi
  57.  
  58. # Start the ROUTEd server.
  59. # if [ -f ${NET}/routed ]
  60. # then
  61. #  echo -n " routed"
  62. #  ${NET}/routed -g -s
  63. # fi
  64.  
  65. # Start the RWHO server.
  66. # if [ -f ${NET}/rwhod ]
  67. # then
  68. #  echo -n " rwhod"
  69. #  ${NET}/rwhod -t -s
  70. # fi
  71.  
  72. # Start the U-MAIL SMTP server.
  73. # if [ -f XXX/usr/lib/umail/umail ]
  74. # then
  75. #  echo -n " umail"
  76. #  /usr/lib/umail/umail -d7 -bd </dev/null >/dev/null 2>&1 &
  77. # fi
  78.  
  79. # Start the various INET servers.
  80. for server in ${IN_SERV}
  81. do
  82.  if [ -f ${NET}/${server} ]
  83.  then
  84.   echo -n " ${server}"
  85.   ${NET}/${server}
  86.  fi
  87. done
  88.  
  89.  # Start the various SUN RPC servers.
  90. if [ -f ${NET}/rpc.portmap -a "$PMAP" = "yes" ]
  91. then
  92.  if [ -f ${NET}/rpc.ugidd ]
  93.  then
  94.   echo -n " ugidd"
  95.   ${NET}/rpc.ugidd -d
  96.  fi
  97.  if [ -f ${NET}/rpc.mountd ]
  98.  then
  99.   echo -n " mountd"
  100.   ${NET}/rpc.mountd
  101.  fi
  102.  if [ -f ${NET}/rpc.nfsd ]
  103.  then
  104.   echo -n " nfsd"
  105.   ${NET}/rpc.nfsd
  106.  fi
  107.  # Fire up the PC-NFS daemon(s).
  108.  if [ -f ${NET}/rpc.pcnfsd ]
  109.  then
  110.   echo -n " pcnfsd"
  111.   ${NET}/rpc.pcnfsd ${LPSPOOL}
  112.  fi
  113.  if [ -f ${NET}/rpc.bwnfsd ]
  114.  then
  115.   echo -n " bwnfsd"
  116.   ${NET}/rpc.bwnfsd ${LPSPOOL}
  117.  fi
  118. fi
  119.  
  120. echo ""
  121.  
  122. # Done!
  123.