Generic way to restart servers?

Joshua Lokken joshualokken at
Mon Apr 14 11:33:09 PDT 2003

* Paul Hoffman (phoffman at wrote:
==> 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?

I don't know which version of apache you use, but with apache2, there's
the apachectl tool.

# apachectl stop|start|graceful , etc.


==> _______________________________________________
==> freebsd-questions at mailing list
==> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list