Generic way to restart servers?

George Vagner george at vagner.com
Mon Apr 14 11:56:12 PDT 2003


named.restart

used to work for me.


----- Original Message -----
From: "Joshua Lokken" <joshualokken at attbi.com>
To: "Paul Hoffman" <phoffman at proper.com>
Cc: <freebsd-questions at freebsd.org>
Sent: Monday, April 14, 2003 2:33 PM
Subject: Re: Generic way to restart servers?


> * 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"
> _______________________________________________
> 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"
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 4/10/2003



More information about the freebsd-questions mailing list