Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 08:34:22 -0700
From:      Paul Hoffman <phoffman@proper.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Generic way to restart servers?
Message-ID:  <p0521060cbac08501a459@[142.131.246.132]>

next in thread | raw e-mail | index | archive | help
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?



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