Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2001 21:57:51 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        Kelvin Ng Chee Hoong <nchee_hoong@pacific.net.sg>
Cc:        "Jonathan M. Slivko" <jslivko@jslivko.org>, so@server.i-clue.de, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Restart /etc/rc.conf
Message-ID:  <20010701215751.S296@blossom.cjclark.org>
In-Reply-To: <3B3FFB3B.47CA7BBA@pacific.net.sg>; from nchee_hoong@pacific.net.sg on Mon, Jul 02, 2001 at 12:40:27PM %2B0800
References:  <3B3FC775.F9B111CD@pacific.net.sg> <Pine.LNX.4.10.10107020212510.26376-100000@localhost.localdomain> <20010701195927.K296@blossom.cjclark.org> <3B3FFB3B.47CA7BBA@pacific.net.sg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 02, 2001 at 12:40:27PM +0800, Kelvin Ng Chee Hoong wrote:
> how about enable or disable inetd ?

To kill inetd(8),

  # kill `cat /var/run/inetd.pid`

To have it re-read /etc/inetd.conf

  # kill -HUP `cat /var/run/inetd.pid`

To restart it (when there is not one already running),

  # inetd <flags>

If you want to automatically read the currently used flags (the
default is '-wW'), using /etc/{defaults,}/rc.conf it's a bit more
work,

  # sh
  # . /etc/defaults/rc.conf
  # source_rc_confs
  # inetd ${inetd_flags}

Better off just knowing the flags.
-- 
Crist J. Clark                           cjclark@alum.mit.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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