From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 08:34:26 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 B0B9437B401 for ; Mon, 14 Apr 2003 08:34:26 -0700 (PDT) Received: from above.proper.com (mail.proper.com [208.184.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2125B43F85 for ; Mon, 14 Apr 2003 08:34:25 -0700 (PDT) (envelope-from phoffman@proper.com) Received: from [142.131.246.132] (adsl-63-202-92-152.dsl.snfc21.pacbell.net [63.202.92.152]) by above.proper.com (8.12.8p1/8.12.8) with ESMTP id h3EFYS1s064638 for ; Mon, 14 Apr 2003 08:34:28 -0700 (PDT) (envelope-from phoffman@proper.com) Mime-Version: 1.0 X-Sender: phoffprop@mail.proper.com Message-Id: X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . Date: Mon, 14 Apr 2003 08:34:22 -0700 To: freebsd-questions@FreeBSD.ORG From: Paul Hoffman Content-Type: text/plain; charset="us-ascii" ; format="flowed" Subject: 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 15:34:27 -0000 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?