From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 11:33:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E63537B404 for ; Mon, 14 Apr 2003 11:33:09 -0700 (PDT) Received: from joloxbox.joshualokken.com (12-225-249-250.client.attbi.com [12.225.249.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53E8E43FA3 for ; Mon, 14 Apr 2003 11:33:06 -0700 (PDT) (envelope-from joshualokken@attbi.com) Received: from joloxbox.joshualokken.com (localhost.joshualokken.com [127.0.0.1])h3EIXerc077717; Mon, 14 Apr 2003 11:33:41 -0700 (PDT) (envelope-from joshualokken@attbi.com) Received: (from jolok@localhost) by joloxbox.joshualokken.com (8.12.9/8.12.9/Submit) id h3EIXdJq077716; Mon, 14 Apr 2003 11:33:39 -0700 (PDT) X-Authentication-Warning: joloxbox.joshualokken.com: jolok set sender to joshualokken@attbi.com using -f Date: Mon, 14 Apr 2003 11:33:39 -0700 From: Joshua Lokken To: Paul Hoffman Message-ID: <20030414183339.GA77598@joloxbox.joshualokken.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: little to none X-OS: FreeBSD joloxbox.joshualokken.com 4.8-STABLE i386 cc: freebsd-questions@freebsd.org Subject: Re: Generic way to restart servers? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 18:33:09 -0000 * Paul Hoffman (phoffman@proper.com) wrote: ==> Hi again. I want to write a script that will restart named. Right now I ==> have: ==> ==> kill -9 `cat /var/run/named.pid` ==> /usr/local/sbin/named -c /etc/named.conf ==> ==> Other BSDs have the rc.d concept, but it is often kind of kludgy, ==> particularly when some servers come from the ports collection. Does ==> FreeBSD have a generic way to shutdown and restart servers such as ==> named and sendmail and apache? I don't know which version of apache you use, but with apache2, there's the apachectl tool. # apachectl stop|start|graceful , etc. -- Joshua ==> _______________________________________________ ==> freebsd-questions@freebsd.org mailing list ==> http://lists.freebsd.org/mailman/listinfo/freebsd-questions ==> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"