From: Finn Rasmussen <fra@kemi.aau.dk>
Subject: Re: rc.local ??
Date: 1995/11/24 [thread overview]
Message-ID: <Pine.OSF.3.91.951124112625.2832A-100000@kemi.aau.dk> (raw)
In-Reply-To: 1995Nov20.120352.22187@zippy.dct.ac.uk
The folowing instruction is taken from http://www.w3.org/....
I think it answers Your question.
NOTES ABOUT OSF/1
There are some problems with the W3C httpd running on an OSF/1 version
3.0 platform. I have got this information from Per Steinar Iversen
<PerSteinar.Iversen@fi.uib.no> which will integrate the W3C httpd
better into OSF/1 3.0:
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.
_________________________________________________________________
NOTE We have recently received the following information from Eric R
Schott <schott@zk3.dec.com> about the script itself and where to put
it:
* This example uses a local script that most Digital UNIX (aka DEC
OSF/1) platforms don't have (reference to /usr/local/bin/skill)
* It is correct to place it in /sbin/init.d
* It is correct to soft link it to /sbin/rc3.d/S97httpd
* It should NOT be linked as /sbin/rc3.d/K02httpd
* INSTEAD, it should be soft linked as /sbin/rc0.d/K02httpd
* AND it should be soft linked as /sbin/rc2.d/K02httpd
_________________________________________________________________
Henrik Frystyk, libwww@w3.org, July 1995
-------------------------------------------------------------------
Finn Rasmussen, Kemisk Institut, Langelandsgade 140, DK-8000 Aarhus C.
Tlf (omstill): +45 8942 3333 Fax: +45 8619 6199
Tlf (direkte): +45 8942 3865 E-mail: fra@kemi.aau.dk
prev parent reply other threads:[~1995-11-24 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-20 5:00 rc.local ?? Andy Cobley
1995-11-24 5:00 ` Finn Rasmussen [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox