From owner-freebsd-questions Sun Jul 1 21:58: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 1B16237B405 for ; Sun, 1 Jul 2001 21:58:02 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from blossom.cjclark.org (dialup-209.245.135.39.Dial1.SanJose1.Level3.net [209.245.135.39]) by hawk.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id VAA09529; Sun, 1 Jul 2001 21:57:54 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f624vpL12254; Sun, 1 Jul 2001 21:57:51 -0700 (PDT) (envelope-from cjc) Date: Sun, 1 Jul 2001 21:57:51 -0700 From: "Crist J. Clark" To: Kelvin Ng Chee Hoong Cc: "Jonathan M. Slivko" , so@server.i-clue.de, "freebsd-questions@FreeBSD.ORG" Subject: Re: Restart /etc/rc.conf Message-ID: <20010701215751.S296@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <3B3FC775.F9B111CD@pacific.net.sg> <20010701195927.K296@blossom.cjclark.org> <3B3FFB3B.47CA7BBA@pacific.net.sg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B3FFB3B.47CA7BBA@pacific.net.sg>; from nchee_hoong@pacific.net.sg on Mon, Jul 02, 2001 at 12:40:27PM +0800 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 Mon, Jul 02, 2001 at 12:40:27PM +0800, Kelvin Ng Chee Hoong wrote: > how about enable or disable inetd ? To kill inetd(8), # kill `cat /var/run/inetd.pid` To have it re-read /etc/inetd.conf # kill -HUP `cat /var/run/inetd.pid` To restart it (when there is not one already running), # inetd If you want to automatically read the currently used flags (the default is '-wW'), using /etc/{defaults,}/rc.conf it's a bit more work, # sh # . /etc/defaults/rc.conf # source_rc_confs # inetd ${inetd_flags} Better off just knowing the flags. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message