From owner-freebsd-questions Thu Oct 4 1:58:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 95F9437B401 for ; Thu, 4 Oct 2001 01:58:36 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 7FAF82B6DC; Thu, 4 Oct 2001 10:58:32 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id 43CB0224; Thu, 4 Oct 2001 18:58:20 +1000 (EST) Date: Thu, 4 Oct 2001 18:58:20 +1000 From: Edwin Groothuis To: Andreas Pauley Cc: "questions@FreeBSD.ORG" Subject: Re: Restarting Daemons in FreeBSD Message-ID: <20011004185820.A498@k7.mavetju.org> References: <3BBC254E.41993B93@qbcon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BBC254E.41993B93@qbcon.com>; from andreasp@qbcon.com on Thu, Oct 04, 2001 at 11:01:02AM +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 Thu, Oct 04, 2001 at 11:01:02AM +0200, Andreas Pauley wrote: > I've just made changes to my syslog.conf and the syslog startup > parameters in rc.conf If you want to do the parameters as defined in rc.conf, a reboot is the only way. > How do I restart syslog with the new flags in rc.conf, and how do I get > syslog to re-read its config if I just change something small in > syslog.conf? You should send a hup-signal to the syslogd: ps xauw | grep syslogd, check the pid and do "kill -HUP pid" or kill -HUP `cat /var/run/syslog.pid` or killall -HUP syslogd > Is there a standard way to stop/start/restart daemons in FreeBSD? > (I'm used to the RedHat way of having scripts for this in a central > directory) Yes, a little bit more Do It Yourself than RedHat: find the process and send the signals to it. -HUP is a common practise, so is storing the pid in /var/run/... is and looking for the process id and send the hup afterwards is working everywhere. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message