* rc.local ??
@ 1995-11-20 5:00 Andy Cobley
1995-11-24 5:00 ` Finn Rasmussen
0 siblings, 1 reply; 2+ messages in thread
From: Andy Cobley @ 1995-11-20 5:00 UTC (permalink / raw)
Hi all,
What is the OSF equivelent of the Sunos rc.local file,
I am trying to get our httpd deamon running automaticaly
after a reboot, under SunOS I would put an entry in the
rc.local file, but I can't find this file under
DEC OSF V1.2
Andy C
Sysadmin
Microcentre
University of Dundee
Dundee
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rc.local ??
1995-11-20 5:00 rc.local ?? Andy Cobley
@ 1995-11-24 5:00 ` Finn Rasmussen
0 siblings, 0 replies; 2+ messages in thread
From: Finn Rasmussen @ 1995-11-24 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-11-24 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-20 5:00 rc.local ?? Andy Cobley
1995-11-24 5:00 ` Finn Rasmussen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox