Date: Thu, 4 Oct 2001 06:59:33 -0500 From: Mike Meyer <mwm@mired.org> To: Andreas Pauley <andreasp@qbcon.com> Cc: questions@freebsd.org Subject: Re: Restarting Daemons in FreeBSD Message-ID: <15292.20261.480669.377198@guru.mired.org> In-Reply-To: <93324075@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Andreas Pauley <andreasp@qbcon.com> types: > I've just made changes to my syslog.conf and the syslog startup > parameters in rc.conf Since nobody mentioned two things that make life a *lot* easier, I think I'll do so. > 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? Changing the flags in rc.conf means you have to kill it and restart it by hand with the the flags copied in by hand. Or, if you're paranoid, by doing something like: # sh # start a shell we're going to toss later # killall syslogd # killall kills by process name # . /etc/rc.conf # Get the value for syslogd_flags # /usr/sbin/syslogd ${syslogd_flags} # Start syslogdf # exit # as promised, throw away the shell. > Is there a standard way to stop/start/restart daemons in FreeBSD? If the daemons were installed from ports, there's probably a script in /usr/local/etc/rc.d that starts and stops them. Invoke it with the option "stop" and then "start". Some of them may accept a "restart" argument as well; just read them and see. Many of the standard system daemons - which aren't started that way - will take a HUP signal to mean "reread configuration information." You can do that for syslogd like so: # killall -HUP syslogd For these, you have to read the man page. Hopefully, 5.0 (or maybe something before that) will include the NetBSD rc system, which combines the advantages of both the SysV system that most Linux distros use with those of the BSD rc.conf system. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. 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?15292.20261.480669.377198>