From owner-freebsd-questions Sun Sep 10 8:49:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.tetronsoftware.com (ns1.tetronsoftware.com [64.217.1.41]) by hub.freebsd.org (Postfix) with ESMTP id 3A16737B42C for ; Sun, 10 Sep 2000 08:49:44 -0700 (PDT) Received: from ns1.tetronsoftware.com (ns1.tetronsoftware.com [64.217.1.41]) by ns1.tetronsoftware.com (8.9.3/8.9.3) with ESMTP id KAA01797; Sun, 10 Sep 2000 10:48:39 -0500 (CDT) (envelope-from zeus@tetronsoftware.com) Date: Sun, 10 Sep 2000 10:48:39 -0500 (CDT) From: Gene Harris To: Otter Cc: Odhiambo Washington , Salvo Bartolotta , freebsd-questions@FreeBSD.ORG Subject: RE: PORTMAP In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The answer to your questions depends on the dameon you wish to restart. However, generally speaking, you can use kill -HUP to restart/reinitialize a daemon. To use portmap as an example, try using the command 'ps waux | grep portmap'. You should get back a line that looks like: daemon 420 0.0 0.2 832 412 ?? Is 12:28AM 0:00.00 /usr/sbin/portmap, which gives the pid of 420. You can kill the portmapper with kill -9 420. To restart portmap, issue the command /usr/sbin/portmap. If you want to restart/reinit, do kill -HUP 420. This allows you to work with portmapper while the server remains up. Of course, if someone is using a service that depends on the mapper, then you may crash them if you restart the service. NFS comes to mind. HTH, Gene Harris On Sun, 10 Sep 2000, Otter wrote: > }>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > } > }On 9/10/00, 2:43:14 PM, Odhiambo Washington > }wrote regarding PORTMAP: > } > } > }> Hello pals, > }> I need to know whether I will be calling for trouble > }disabling portmap > }and > }> how to do it. This is on FBSD 3.4-R. Some guy seems to be so busy > }scanning > }> my network and I guess this is a way to settle the score > }with him;-) > } > }> -Wash > } > } > } > }Dear Odhiambo Washington, > } > }the short answer is rc.conf(5), but today is Sunday :-) > } > }/etc/rc.conf: > } > }[...] > }portmap_enable="NO" > }[...] > } > }This won't start portmap at boot time. > } > }Best regards, > }Salvo > } > Salvo (or anyone else), > The rc.conf file is an easy one. As I sit here and think about those > in a mission critical environment, and the changes they might need to > make after getting the OS installed and in production... Is there any > way to make changes to the rc.conf, and somehow > restart/reinitialize/etc those changes without rebooting? Maybe > sysctl? I've been looking at the man page for it and don't see > anything that would work there. Anyone have a clue? I don't. > -Otter > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Tetron Software, LLC http://www.tetronsoftware.com FreeBSD Apache PostgreSQL Oracle 8/8i Windows 95/98/NT Visual C Visual Basic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message