REBOOT(8)
π REBOOT β System Manager's Manual (8) π
okay bestie, so this is the reboot(8) page, and honestly? it's lowkey the most main-character page in the whole section 8 lineup. we're talking stopping and restarting the system β reboot, halt, fastboot, fasthalt. four icons, one purpose: turning the vibe (and the machine) off and on again. β¨
π¦ SYNOPSIS π¦
no cap, here's the exact shape of these commands β copy them character for character or the shell will be like "girl what":
halt [-DflNnpq] [-e variable=value] [-k kernel] [-o options]
reboot [-cDdflNnpqr] [-e variable=value] [-k kernel] [-o options]
fasthalt [-DflNnpq] [-e variable=value] [-k kernel] [-o options]
fastboot [-dDflNnpq] [-e variable=value] [-k kernel] [-o options]
notice how reboot gets the extra c and r, and fastboot gets a d? they're all just different flavors of the same energy, iykyk. π
πΈ DESCRIPTION πΈ
okay so here's the tea β β halt and reboot are the two that do the actual work. what they do:
- flush the file system cache to disk (gotta save your data, bestie, always)
- send all running processes a
SIGTERMβ that's the polite "hey, wrap it up" signal - and subsequently a
SIGKILLβ that's the "okay I asked nicely" signal π - then, respectively, halt or restart the system
the action is logged, and yes β that includes entering a shutdown record into the user accounting database. so the system remembers. π
The options are as follows:
β¨ OPTIONS β¨
-cβ the system will turn off the power and then turn it back on if it can. if the power down action fails, the system will halt or reboot normally, depending on whetherhaltorrebootwas called. lowkey important caveat: at the present time, only theipmi(4)driver implements the power cycle functionality, and only on hardware with a BMC that supports power cycling. unlike power off, the amount of hardware that supports power cycling is small. so likeβ¦ don't count on this one, bestie π-Dβ delete existing nextboot configuration and exit. that's it. it dips. π«Ά-dβ the system is requested to create a crash dump. β οΈ this option is supported only when rebooting, and it has no effect unless a dump device has previously been specified withdumpon(8). so if you haven't set that up, this flag is literally just decorative. π-evariable=valueβ setsvariabletovaluein the loader's and kernel's environment. and here's the detail nobody expects: ifvalueis not already enclosed in double quotes, they will be added before writing to the nextboot configuration. π care should be taken ifvaluecontains any characters that are special to the shell or loader's configuration parsing code β like, be careful, fr fr.-fβ force reboot. normally,rebootchecks for the presence of the next kernel, and absence of the/var/run/noshutdownfile. without this flag,rebootis denied if one of the conditions failed. so this is your "I said what I said" flag. π-kknameβ boot the specified kernelknameon the next system boot. this is a one-shot option β the default kernel will be booted on successive boots. no reboot or halt will be performed if/boot/kname/kerneldoes not exist unless the-fflag is specified. so like, it's a one-night-only performance. π-lβ the halt or reboot is not logged to the system log. this option is intended for applications such asshutdown(8), that callrebootorhaltand log this themselves. teamwork, bestie π«Ά-Nβ the file system cache is not flushed during the initial process clean-up, however the kernel levelreboot(2)is still processed with a sync. this can be useful for performing a "best-effort" reboot when devices might be unavailable β which can happen when devices have been disconnected, such as withiscsi(4). π¦-nβ the file system cache is not flushed. β οΈ this option should probably not be used. that's the whole note. they said it, not me. π-ooptionsβ this option allows the passing of kernel flags for the next boot. β¨-pβ the system will turn off the power if it can. if the power down action fails, the system will halt or reboot normally, depending on whetherhaltorrebootwas called. the polite version of-c. π-qβ the system is halted or restarted quickly and ungracefully, and only the flushing of the file system cache is performed (if the-noption is not specified). β οΈ this option should probably not be used. again β their words!! π-rβ okay this one's iconic. the system kills all processes, unmounts all filesystems, mounts the new root filesystem, and begins the usual startup sequence. after changingvfs.root.mountfromwithkenv(1),reboot -rcan be used to change the root filesystem while preserving kernel state. β¨ this requires thetmpfs(4)kernel module to be loaded β becauseinit(8)needs a place to store itself after the old root is unmounted, but before the new root is in place. it's giving backstage-pass energy. π
so like, fasthalt and fastboot? nothing more than aliases for the halt and reboot utilities. same girl, different name. π
and normally, the shutdown(8) utility is used when the system needs to be halted or restarted β giving users advance warning of their impending doom and cleanly terminating specific programs. not me quoting "impending doom" directly, that's genuinely what the page says π
π EXAMPLES π
replace current root filesystem with UFS mounted from /dev/ada0s1a:
kenv vfs.root.mountfrom=ufs:/dev/ada0s1a
reboot -r
this mechanism can also be used with NFS, with a caveat that it only works with NFSv4, and requires a numeric IPv4 address:
kenv vfs.root.mountfrom=nfs:192.168.1.1:/share/name
reboot -r
see how it's 192.168.1.1 and not a hostname? that's the numeric IPv4 thing. don't @ me, @ the manpage. π
π§ SEE ALSO π§
kenv(1), reboot(2), getutxent(3), ipmi(4), boot(8), dumpon(8), nextboot(8), savecore(8), shutdown(8), sync(8)
(go read shutdown(8) first, bestie, it's the responsible one π)
β HISTORY β
a reboot utility appeared in 4.0BSD. ancient. iconic. still slaying. π
π«Ά okay that's the whole page!! and before you close this tab β this beauty ships with Debian, and it's dated April 12, 2025. so like, recent glow-up, vintage soul. mwah πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1990, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms