Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 10:57:24 -0500
From:      Peter Elsner <peter@servplex.com>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Generic way to restart servers?
Message-ID:  <5.2.0.9.2.20030414105706.01bbc108@mail.servplex.com>
In-Reply-To: <p0521060cbac08501a459@[142.131.246.132]>

next in thread | previous in thread | raw e-mail | index | archive | help
Why not just use ndc restart ?

Peter


At 08:34 AM 4/14/2003 -0700, you 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?
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

----------------------------------------------------------------------------------------------------------
Peter Elsner <peter@servplex.com>
Vice President Of Customer Service (And System Administrator)
1835 S. Carrier Parkway
Grand Prairie, Texas 75051
(972) 263-2080 - Voice
(972) 263-2082 - Fax
(972) 489-4838 - Cell Phone
(425) 988-8061 - eFax

I worry about my child and the Internet all the time, even though she's
too young to have logged on yet. Here's what I worry about. I worry
that 10 or 15 years from now, she will come to me and say "Daddy, where
were you when they took freedom of the press away from the Internet?"
-- Mike Godwin

Unix IS user friendly... It's just selective about who its friends are.
System Administration - It's a dirty job, but somebody said I had to do it.
If you receive something that says 'Send this to everyone you know,
pretend you don't know me.

Standard $500/message proofreading fee applies for UCE.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030414105706.01bbc108>