The following little script eliminates this and integrates httpd better into OSF/1 V3.0:
#!/sbin/sh # # Start httpd. # PATH=/sbin:/usr/sbin:/usr/bin export PATH # NNTPSERVER=<your.news.server> export NNTPSERVER # unset ftp_proxy unset gopher_proxy unset http_proxy unset news_proxy unset wais_proxy umask 022 # case "$1" in 'start') echo "Starting HTTPD..." /usr/local/www/httpd -r /etc/httpd.conf ;; 'stop') echo "Shutting down HTTPD..." # kill -9 `cat /usr/local/www/httpd-pid` # Note: skill removes *all* httpd childen... /usr/local/bin/skill -9 httpd ;; *) echo "usage: $0 {start|stop}" ;; esac #When the script is put into
/sbin/init.d/httpd
and have
softlinks from /sbin/rc3.d/S97httpd
and
/sbin/rc3.d/K02httpd
- then httpd starts/stops nicely
integrated in the OSF/1 fashion, just like the DEC daemons does. "man
rc3" for more info. Note the setting/unsetting of critical variables. Also the setting of umask - httpd just uses whatever root had at start-time, annoying for log-files.