Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2004 11:45:37 +0000
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Restarting rc.conf
Message-ID:  <20041122114537.GA24925@catflap.slightlystrange.org>
In-Reply-To: <41536B85000AC932@ims3e.cp.tin.it>
References:  <41536B85000AC932@ims3e.cp.tin.it>

next in thread | previous in thread | raw e-mail | index | archive | help

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 22, 2004 at 12:18:05PM +0100, v.demartino2@virgilio.it wrote:
> I set up a postgresql server under FreeBDSD 5.3 stable.
>=20
> 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?

It very much depends on the type of changes you have made in
/etc/rc.conf.  If you have altered the start-up flags for an application
installed from ports, simply run its rc script in /usr/local/etc/rc.d,
and provided it understands rcNG (which the vast majority I have come
across lately do), your changes will be picked up as expected.

This also holds true of most services invoked by the rc scripts in
/etc/rc.d/ - call the script with the "restart" argument, and all should
work.

If you have altered interface configs (changed IP address, for example)
you will need to use ifconfig to make the changes live.

HTH

Dan

--=20
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--sdtB3X0nJg68CQEu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBodFhhvzwOpChvo8RAuFQAKCG2C7ZrMmrUWgC3bstsY+rrQma1QCguhkU
J0Axc/n5yHRljKx85cPlt2s=
=/2ut
-----END PGP SIGNATURE-----

--sdtB3X0nJg68CQEu--



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