Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2001 18:58:20 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Andreas Pauley <andreasp@qbcon.com>
Cc:        "questions@FreeBSD.ORG" <questions@freebsd.org>
Subject:   Re: Restarting Daemons in FreeBSD
Message-ID:  <20011004185820.A498@k7.mavetju.org>
In-Reply-To: <3BBC254E.41993B93@qbcon.com>; from andreasp@qbcon.com on Thu, Oct 04, 2001 at 11:01:02AM %2B0200
References:  <3BBC254E.41993B93@qbcon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011004185820.A498>