Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Harvey Environment Variables

Keith Poole edited this page Sep 1, 2015 · 3 revisions

This is a list of environment variables currently used in Harvey. In Harvey, "everything is a file" is universal, so environment variables are also served by a file server which is mounted under /env. Currently, this server serves these files:

  • /env/NPROC - number of processors on the machine
  • /env/apid
  • /env/auth - network address of auth server
  • /env/boottime - date/time of last boot
  • /env/cflag
  • /env/cputype - Currently always "amd64"
  • /env/facedom - default domain for faces (not currently used)
  • /env/fileserver
  • '/env/fn#sigexit'
  • /env/fs - network address of file server
  • /env/home - user's home directory
  • /env/ifs
  • /env/maxcores - limits the number of cores harvey can use (kernel parameter)
  • /env/nobootprompt - type of boot e.g. tcp, local, etc set as a kernel parameter to skip console boot prompt
  • /env/objtype - Currently always "amd64"
  • /env/path - search path for executables
  • /env/pgsz - set to 2097152 (2Mb)
  • /env/pid
  • /env/prompt - current prompt
  • /env/rcname - path to rc shell
  • /env/rootdir - root directory
  • /env/service - type of server (e.g. "cpu")
  • /env/site
  • /env/status
  • /env/sysname - if not set as a kernel parameter, it will be set in cs.c
  • /env/terminal -
  • /env/timezone - set by init.c to the contents of /adm/local/timezone
  • /env/user - current user id