From owner-freebsd-questions@FreeBSD.ORG Mon Apr 21 10:16:39 2003 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 5FE7A37B401 for ; Mon, 21 Apr 2003 10:16:39 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99D9743FE0 for ; Mon, 21 Apr 2003 10:16:36 -0700 (PDT) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 197dwb-000NoC-00; Mon, 21 Apr 2003 09:15:01 -0700 Date: Mon, 21 Apr 2003 09:15:01 -0700 From: Nathan Kinkade To: Joseph Maxwell Message-ID: <20030421161501.GA91485@sub21-156.member.dsl-only.net> Mail-Followup-To: Nathan Kinkade , Joseph Maxwell , FreeBSD Users References: <3EA40CC7.140DFEF1@jaymax.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <3EA40CC7.140DFEF1@jaymax.com> User-Agent: Mutt/1.4i Sender: Nathan Kinkade cc: FreeBSD Users Subject: Re: Restarting init without rebooting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nkinkade@fastmail.fm List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 17:16:39 -0000 --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--