Restarting rc.conf
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Nov 22 05:36:36 PST 2004
On 2004-11-22 11:32, David Jenkins <david.jenkins at gmail.com> wrote:
>On Mon, 22 Nov 2004 12:18:05 +0100, v.demartino2 at virgilio.it
><v.demartino2 at 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
More information about the freebsd-questions
mailing list