Installing httpd to run continuously

This method has the advantage over using the inetd master daemon to start your server that the response time is reduced.

Just run httpd from the /etc/rc system startup file, specifying the port the -p option.

Example

		/usr/etc/httpd -p 80 &

or a little more safely in case httpd is removed:
if [ -f /usr/etc/httpd ]; then
	(/usr/etc/httpd -p 80 && (echo -n ' portmap') 	) &	>/dev/console
fi

Obviously you can use any of the other options too.

A disadvantage of this method is that the process will inflat if there are any memory leaks.

Also, the daemon will run as root. It has to do this to be able to run on port 80. Fix this by setting a more appropriate uid and gid in the access authorization part of the rule file.

Tim BL