Generic way to restart servers?

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


* Paul Hoffman (phoffman at proper.com) wrote:
==> Hi again. I want to write a script that will restart named. Right now I 
==> have:
==> 
==> kill -9 `cat /var/run/named.pid`
==> /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.

--
Joshua

==> _______________________________________________
==> freebsd-questions at freebsd.org mailing list
==> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
==> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list