: Hello.
: I have a server configured with about 30 seperate domains and all of which run their own httpd deamon.
: It seems I have to reboot every two days to keep the system from slowing down. Is there any documentation
: on setting up a server this way or does anyone have any advice on how I can keep the server from slowing
: down so much?
: Any advice would be appreciated. Thank you.
Hello Robert,
you may just be able to get away with causing the WebServer to 'hangup';
that is, to 'restart' itself.
I use this trick to get automatic logfile archiving. What you need to do
is to set up a cron job that will call a script which cause the WebServer
to 'hangup'.
Note :- I'm using the most groovy NCSA 151 WebServer
The Perl script I use (a stripped version anyway) does this:
#!/bin/perl
# Get the process ID of the 'parent' WebServer. There's probably a more
# 'elogant' way of doing this!
open(FOO,'/info/www/logs/httpd.pid');
close(FOO);
# Return the process ID of the 'parent' WebServer.
$pid=$lines[0];
# Restart the WebServer.
system('kill','-HUP',"$pid");
The only bit you'll need to change is the line:
open(FOO,'/info/www/logs/httpd.pid');
so, that this script accesses the 'PidFile' set in the WebServer's
configuration.
Hope this helps,
Steff
: Steff Watkins, UBris Starlink Site Manager
: University of Bristol, Clifton, Bristol, AVON, BS8 1TH, UK
:
: X-400 : /G=Steff/S=Watkins/O=Bristol/PRMD=UK.AC/ADMD= /C=GB/
: HTTP : http://sw.cse.bris.ac.uk/
: Phone: +44 177 287869 (external) 3046 / 7651 (internal)
: 'Ok.. So the .sig's 8 lines long!!! So what???'