From owner-freebsd-questions Wed Apr 3 13:25:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id C940E37B417 for ; Wed, 3 Apr 2002 13:25:38 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id D6B9D901A00; Wed, 3 Apr 2002 16:24:14 -0500 (EST) Date: Wed, 3 Apr 2002 16:24:14 -0500 From: mpd To: Martin Schweizer Cc: freebsd-questions@freebsd.org Subject: Re: rc.shutdown Message-ID: <20020403162414.A68913@rochester.rr.com> References: <20020403230833.A293@spectraweb.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020403230833.A293@spectraweb.ch>; from pcservi@spectraweb.ch on Wed, Apr 03, 2002 at 11:08:33PM +0200 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 Wed, Apr 03, 2002 at 11:08:33PM +0200, Martin Schweizer wrote: > Hello > > I want to shutdown my dhcpd with /bin/kill 'cat /var/run/dhcpd.pid'. I set > this in rc.shutdown but nothing occurs. In man pages and READMEs I didn't > found anything (only an example man rc). What do I wrong? From the fm: The rc.d directories contain scripts which will be automatically executed at boot time and shutdown time. At boot time, the specified directories are processed immediately after rc.local is executed. (See below for details on how to specify directories to check.) At shutdown time, the directories are processed by rc.shutdown. You don't edit rc.shutdown directly. You write a small script that gets called automatically by rc.shutdown. Put it in /usr/local/etc/rc.d, making sure it's named correctly, and handles the arguments that will be passed to it. This is all in the man page. > > -- > Regards > > Martin Schweizer mike. -- ___________________________________________________________ "WE ARE ON A PILGRIMAGE!" - Pokey the Penguin from "POKEY AND THE CAIRO" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message