Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2001 14:05:16 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Spike <spike42@gte.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem using ps and grep
Message-ID:  <20011109140516.G35710@k7.mavetju.org>
In-Reply-To: <3BEACFE4.18810.789385@localhost>; from spike42@gte.net on Thu, Nov 08, 2001 at 06:33:08PM -0800
References:  <3BEACFE4.18810.789385@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 08, 2001 at 06:33:08PM -0800, Spike wrote:
> im running freebsd on a web server and when i add a new domain to the server i need to restart 
> httpd
> 
> i have been using the command "kill -1 pid"

That's one way. What you also could do it use the contents of the
file httpd.pid, which is created on startup of the apache httpd
and which contains the process id of the webserver process. It is
probably in your webserver-logfile directory.

Usage: kill -HUP `cat <path to httpd.pid>/httpd.pid

> for some reason the ps grep command does not work anymore
> the first time i issue the command it returns 1 line that displays the pid for the command i just 
> entered
> if i do it again i get nothing

That means there is no httpd running. Restart it :-)

> is there another way to make httpd "re-read" its .conf file so i dont have to restart it?

Use apachectl, which is a wrapper around ps, kill, grep etc.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011109140516.G35710>