Date: Mon, 21 Apr 2003 09:15:01 -0700 From: Nathan Kinkade <nkinkade@dsl-only.net> To: Joseph Maxwell <jemaxwell@jaymax.com> Cc: FreeBSD Users <questions@FreeBSD.ORG> Subject: Re: Restarting init without rebooting Message-ID: <20030421161501.GA91485@sub21-156.member.dsl-only.net> In-Reply-To: <3EA40CC7.140DFEF1@jaymax.com> References: <3EA40CC7.140DFEF1@jaymax.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--LQksG6bCIzRHxTLp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 21, 2003 at 08:22:47AM -0700, Joseph Maxwell wrote: > Hello, >=20 > There is supposed to be a way of restarting init, after modifications of > say an rc.* file, by sending a SIGHUP, I think avoiding the need to > reboot. > Could someone say how it is done. > Thanks >=20 > -- Joe -- It is not necessary to reboot in every case, but you will have to drop to single user mode and then go back to multi-user mode. However, you can get init to re-read the /etc/ttys files by simply sending it a HUP signal in multi-user mode. For a number of things, simply dropping to single user mode and then going back to multi user mode will suffice. You can drop to single user mode with `shutdown now` or `init 1`. Once in single user mode simply `exit` and the machine will resume multi user mode, thereby relaunching most daemons and re-reading rc.conf. However,=20 this will not affect every change you make, notably kernel related changes and the like. For example, I just tested this by altering the hostname directive in rc.conf and turning off linux binary compatibility. When I resumed multi-user operation these were unaffected i.e. the hostname was not reset and the linux.ko module was not unloaded. Nathan --=20 GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+pBkFWZYS9EJQoEwRAsgkAJ9s5F/3XLCBKN2fGXoUwaBrhy2sOgCgwgtO GvH03hsO3ZuBMGzutD3OhoQ= =Grq+ -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030421161501.GA91485>