Restarting init without rebooting
Jez Hancock
jez.hancock at munk.nu
Mon Apr 21 09:22:21 PDT 2003
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
More information about the freebsd-questions
mailing list