Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2003 17:23:33 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        FreeBSD Users <questions@FreeBSD.ORG>
Subject:   Re: Restarting init without rebooting
Message-ID:  <20030421162333.GA94508@users.munk.nu>
In-Reply-To: <3EA40CC7.140DFEF1@jaymax.com>
References:  <3EA40CC7.140DFEF1@jaymax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 21, 2003 at 08:22:47AM -0700, Joseph Maxwell wrote:
> Hello,
> 
> 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.
You could try:
init 1
(takes machine into single user mode - MAKE SURE YOU'RE ON A SECURE CONSOLE!!!)
and then after making any changes just issue:
exit
(or ^D I think, this should bring the runlevel back up to multi-user mode)

As usual the manual is your friend :) man init(8)

Good luck,
Jez



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