| Installation -- /User | cern archive | HTTP only |
| home archive home about | |||||||||||||
Installing a daemon under inetdThe usual way to install a daemon is to either run it from the bootstrap command file (for example /etc/rc) so that it runs continuously, or to set up the internet daemon (inetd) to run it when a call comes in.There is a csh script to do all this for BSD systems, which should be run from the directory in which you have compiled the daemon. Copy the daemon program or shell script ( httpd in this example) into a suitable directory such as /usr/etc/httpd. Protect it from anyone writing to it except root.Put "http" in the /etc/services file, or use the name of a specific service of your own if you want to use have a special port number. (Exceptions: on a NeXT, see using the NetInfomanager . On any machine running NIS (yellow pages), see specicial instructions ). For example, Note: there seem to be, on the NeXT at least, a limit of 4 arguments passed across by inetd!When you have updated inted.conf, find out which process is running inetd, and send it a "HUP" signal. On BSD unix (For system V, use ps-el for ps aux) this looks like: Also remember for httpd:You must make or copy a rule file /etc/httpd.conf, unless you have used the -r option to change its location, or -R to disable it.The -r option tells the daemon which rule file to use. See rule files . If a log file is required, make sure that the user name under which the daemon is run (the 5th field in the line above) has the right to write the file. Test the server with the line mode browser by giving its address explicitly: |
|
||||||||||||