X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/bsd/man/man2/reboot.2 diff --git a/bsd/man/man2/reboot.2 b/bsd/man/man2/reboot.2 index ee2829c9e..f41f940fb 100644 --- a/bsd/man/man2/reboot.2 +++ b/bsd/man/man2/reboot.2 @@ -46,11 +46,15 @@ .Ft int .Fn reboot "int howto" .Sh DESCRIPTION -.Fn Reboot -reboots the system. -Only the super-user may reboot a machine on demand. -However, a reboot is invoked -automatically in the event of unrecoverable system failures. +.Fn reboot +reboots the system. Only the super-user may reboot a machine on demand. +However, a reboot may be invoked automatically in the event of +unrecoverable system failures. Programs other than +.Xr reboot 8 +should not call +.Fn reboot . +.Xr Shutdown 8 +or a higher-level API will shut the system down cleanly. .Pp .Fa Howto is a mask of options; the system call interface allows the following @@ -86,9 +90,9 @@ the processor is simply halted; no reboot takes place. This option should be used with caution. .It Dv RB_INITNAME An option allowing the specification of an init program (see -.Xr init 8 ) +.Xr launchd 8 ) other than -.Pa /sbin/init +.Pa /sbin/launchd to be run when the system reboots. This switch is not currently available. .It Dv RB_KDB @@ -120,7 +124,7 @@ prevents this, booting the system with a single-user shell on the console. .Dv RB_SINGLE is actually interpreted by the -.Xr init 8 +.Xr launchd 8 program in the newly booted system. .Pp When no options are given (i.e., @@ -143,12 +147,10 @@ variable The caller is not the super-user. .El .Sh SEE ALSO -.Xr kadb 4 , -.Xr crash 8 , +.Xr shutdown 8 , .Xr halt 8 , -.Xr init 8 , -.Xr reboot 8 , -.Xr savecore 8 +.Xr launchd 8 , +.Xr reboot 8 .Sh BUGS The HP300 implementation supports neither .Dv RB_DFLTROOT