From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 11:56:12 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 24D9C37B401 for ; Mon, 14 Apr 2003 11:56:12 -0700 (PDT) Received: from ns1.vagner.com (ns1.vagner.com [65.39.87.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17E9D43F3F for ; Mon, 14 Apr 2003 11:56:11 -0700 (PDT) (envelope-from george@vagner.com) Received: (from root@localhost) by ns1.vagner.com (8.12.8/8.12.8) id h3EIuAvF089334; Mon, 14 Apr 2003 11:56:10 -0700 (MST) (envelope-from george@vagner.com) Received: from sandy (c-65-97-26-11.va.client2.attbi.com [65.97.26.11]) by ns1.vagner.com (8.12.9/8.12.8av) with SMTP id h3EIu3aX089324; Mon, 14 Apr 2003 11:56:03 -0700 (MST) (envelope-from george@vagner.com) Message-ID: <002e01c302b7$a10fbde0$0b1a6141@sandy> From: "George Vagner" To: "Joshua Lokken" , "Paul Hoffman" References: <20030414183339.GA77598@joloxbox.joshualokken.com> Date: Mon, 14 Apr 2003 14:56:57 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-12.9 required=4.0 tests=ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REFERENCES version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Virus-Scanned: by AMaViS perl-11 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:56:12 -0000 named.restart used to work for me. ----- Original Message ----- From: "Joshua Lokken" To: "Paul Hoffman" Cc: Sent: Monday, April 14, 2003 2:33 PM Subject: Re: Generic way to restart servers? > * 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" > _______________________________________________ > 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" > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.471 / Virus Database: 269 - Release Date: 4/10/2003