From owner-freebsd-questions@FreeBSD.ORG Thu Sep 2 21:50:11 2004 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 51B8A16A4CE for ; Thu, 2 Sep 2004 21:50:11 +0000 (GMT) Received: from blue.gerhardt-it.com (gw.gerhardt-it.com [204.83.38.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id C71A043D1D for ; Thu, 2 Sep 2004 21:50:10 +0000 (GMT) (envelope-from scott@g-it.ca) Received: from [192.168.100.105] (gw.gerhardt-it.com [204.83.38.103]) by blue.gerhardt-it.com (Postfix) with ESMTP id DAB1FFDDE for ; Thu, 2 Sep 2004 15:50:09 -0600 (CST) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: <0EE97899-FD2A-11D8-9A33-000393801C60@g-it.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD From: Scott Gerhardt Date: Thu, 2 Sep 2004 15:50:08 -0600 X-Mailer: Apple Mail (2.619) Subject: Startup Scripts 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: Thu, 02 Sep 2004 21:50:11 -0000 I am noticing that startup scripts in /usr/local/etc/rc.d are now being initiated from /etc/rc.conf with the enable="YES" invocation. See example from /usr/loccal/etc/rc.d/clamav-clamd.sh below, which I just installed from ports. Besides using the kill/killall methods, what is the preferred STOP | RESTART etc methods now? What is the purpose of "KEYWORD: FreeBSD shutdown" #!/bin/sh # # $FreeBSD: ports/security/clamav/files/clamav-clamd.sh,v 1.3 2004/04/19 15:21:33 eik Exp $ # # PROVIDE: clamd # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: FreeBSD shutdown # # Add the following lines to /etc/rc.conf to enable clamd: # #clamav_clamd_enable="YES" # # See clamd(8) for flags # Thanks, -- Scott A. Gerhardt, P.Geo. Gerhardt Information Technologies