From owner-freebsd-questions Thu Nov 8 19: 5:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 9A4E837B416 for ; Thu, 8 Nov 2001 19:05:36 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 991062B6B2; Fri, 9 Nov 2001 04:05:33 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id 88B8E53A; Fri, 9 Nov 2001 14:05:16 +1100 (EST) Date: Fri, 9 Nov 2001 14:05:16 +1100 From: Edwin Groothuis To: Spike Cc: freebsd-questions@freebsd.org Subject: Re: problem using ps and grep Message-ID: <20011109140516.G35710@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Spike , freebsd-questions@freebsd.org References: <3BEACFE4.18810.789385@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BEACFE4.18810.789385@localhost>; from spike42@gte.net on Thu, Nov 08, 2001 at 06:33:08PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 /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