Date: Mon, 22 Nov 2004 15:32:49 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: David Jenkins <david.jenkins@gmail.com> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Restarting rc.conf Message-ID: <20041122133249.GA3359@orion.daedalusnetworks.priv> In-Reply-To: <9395922d041122033246970af4@mail.gmail.com> References: <41536B85000AC932@ims3e.cp.tin.it> <9395922d041122033246970af4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-11-22 11:32, David Jenkins <david.jenkins@gmail.com> wrote: >On Mon, 22 Nov 2004 12:18:05 +0100, v.demartino2@virgilio.it ><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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041122133249.GA3359>