cpurc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/rc
  2. echo -n cpu > /env/service
  3. date > /env/boottime
  4. # replace FILESERVER with the name of your file server
  5. # here we start with kfs, your local disk file system
  6. fileserver=kfs
  7. # replace FACEDOM with the local domain to be used in the faces database
  8. facedom=FACEDOM
  9. # mount points
  10. mntgen -s slashn && chmod 666 /srv/slashn
  11. # name translation, cs sets /dev/sysname
  12. ndb/cs
  13. sysname=`{cat /dev/sysname}
  14. ndb/dns -r
  15. # parallelism for mk
  16. NPROC = `{wc -l </dev/sysstat}
  17. prompt=($sysname^'# ' ' ')
  18. # pick a timeserver closer to you when you can or we'll get clogged
  19. aux/timesync plan9.bell-labs.com
  20. # uncomment the following for booting other systems
  21. #ip/dhcpd
  22. #ip/tftpd
  23. # If you are on an auth server, start these before listening:
  24. #
  25. # auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
  26. # auth/cron >>/sys/log/cron >[2=1] &
  27. #
  28. # also rename some files:
  29. #
  30. # if(! test -e /rc/bin/service.auth/il566){
  31. # mv /rc/bin/service.auth/authsrv.il566 /rc/bin/service.auth/il566
  32. # mv /rc/bin/service.auth/authsrv.tcp567 /rc/bin/service.auth/tcp567
  33. # mv /rc/bin/service/il566 /rc/bin/service/_il566
  34. # mv /rc/bin/service/tcp567 /rc/bin/service/_tcp567
  35. # }
  36. # services available to networks
  37. aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service il
  38. aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service tcp