Generic way to restart servers?

Paul Hoffman phoffman at
Mon Apr 14 08:34:27 PDT 2003

Hi again. I want to write a script that will restart named. Right now I have:

kill -9 `cat /var/run/`
/usr/local/sbin/named -c /etc/named.conf

Other BSDs have the rc.d concept, but it is often kind of kludgy, 
particularly when some servers come from the ports collection. Does 
FreeBSD have a generic way to shutdown and restart servers such as 
named and sendmail and apache?

More information about the freebsd-questions mailing list