From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e6358443b0bd01e6 X-Google-Attributes: gidfee84,public From: Finn Rasmussen Subject: Re: rc.local ?? Date: 1995/11/24 Message-ID: #1/1 X-Deja-AN: 120018187 references: <1995Nov20.120352.22187@zippy.dct.ac.uk> content-type: TEXT/PLAIN; charset=US-ASCII organization: DAIMI, Computer Science Dept. at Aarhus University mime-version: 1.0 newsgroups: comp.unix.osf.osf1 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 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= 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 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