From owner-freebsd-questions@FreeBSD.ORG Mon Nov 22 13:36:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E7D816A4CE for ; Mon, 22 Nov 2004 13:36:36 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD7243D54 for ; Mon, 22 Nov 2004 13:35:20 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])iAMDZH09003424; Mon, 22 Nov 2004 15:35:18 +0200 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) iAMDXuHi003492; Mon, 22 Nov 2004 15:35:17 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)iAMDWo5t003417; Mon, 22 Nov 2004 15:32:50 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 22 Nov 2004 15:32:49 +0200 From: Giorgos Keramidas To: David Jenkins Message-ID: <20041122133249.GA3359@orion.daedalusnetworks.priv> References: <41536B85000AC932@ims3e.cp.tin.it> <9395922d041122033246970af4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9395922d041122033246970af4@mail.gmail.com> cc: "v.demartino2@virgilio.it" cc: FreeBSD Subject: Re: Restarting rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 13:36:36 -0000 On 2004-11-22 11:32, David Jenkins wrote: >On Mon, 22 Nov 2004 12:18:05 +0100, v.demartino2@virgilio.it > wrote: >> I set up a postgresql server under FreeBDSD 5.3 stable. >> how can I make the system be aware of that WITHOUT REBOOTING, in >> other words, how can I make FreeBSD execute the modified rc.conf? >> >> My question: if I modify rc.conf either directly or via sysinstall how >> can I make the system be aware of that WITHOUT REBOOTING, in other words, >> how can I make FreeBSD execute the modified rc.conf? > > I asked this question a long time ago as I wanted to do something > similar. Unfortunately there's no command you can run to just re-read > rc.conf. > > The only thing you can do is drop to single user mode and then come > back up to multi-user. There are very few things that one can change in a FreeBSD system that will _require_ a restart or a shutdown to single user mode: kernel modifications and updates or a decrease in the securelevel of the system, are the only ones I can think of right now. The rest of the changes you make to rc.conf usually correspond to something that can also be changed using the available tools, without a reboot. To stop a service, just run /etc/rc.d/service stop. To start one, /etc/rc.d/service start. To change the keyboard rate, run: kbdcontrol -r newrate To load a console font, vidcontrol -f 8x16 newfont etc... you get the idea by now. To get back to the original poster's question, postgres installs a startup script in `/usr/local/etc/rc.d'. You can start the postgres DB server process, by: # /usr/local/etc/rc.d/010.pgsql.sh start If this is the first time you're installing a PostgreSQL database, it's probably a good idea to read the PostgreSQL manual too. It's an excellent read and you will find a lot of useful stuff in there to tweak the setup of your database and shape it the way you want it to be. - Giorgos