summaryrefslogtreecommitdiff
path: root/sbin/init/init.c
AgeCommit message (Expand)Author
2025-09-16init: Use root's home directory in single-user modeJilles Tjoelker
2025-04-22Search for mntopts.h globally, not locallyBrooks Davis
2023-11-26Remove copyright strings ifdef'd outWarner Losh
2023-11-26sbin: Remove ancient SCCS tags.Warner Losh
2023-09-25Purge more stray embedded $FreeBSD$ stringsJohn Baldwin
2022-10-11init: allow to start script executions with sh -o verifySebastien Bini
2022-09-06init: fix shutdown raceCorvin Köhne
2022-02-21init(8): use proper boolean type for globalsMitchell Horne
2022-02-21boottrace: annotate init and shutdown utilitiesMitchell Horne
2021-07-22init: execute /etc/rc.final after all user processes have terminatedKyle Evans
2021-03-02init: use explicit_bzero() for clearing passwordsKyle Evans
2020-12-25sbin/init: Reduce code duplication by using %m for error messageXin LI
2020-09-02Remove risky compatability with old kernelsBrooks Davis
2020-02-05init(8): set environment variables from the "daemon" class as wellKyle Evans
2020-01-17Small tweak to the default behavior of shutdown -cWarner Losh
2019-03-26init: pedantic correction to "can't exec" script warningEd Maste
2018-08-17Consistently use NULL to terminate the argv; no functional changes.Edward Tomasz Napierala
2018-08-14Add init_exec kenv(1) variable, to make init(8) execute a fileEdward Tomasz Napierala
2018-08-09Use NULLs instead of casted zeroes, for consistency.Edward Tomasz Napierala
2018-08-09Refactor common code into execute_script().Edward Tomasz Napierala
2018-08-04Make it possible for init to execute any executable, not just sh(1)Edward Tomasz Napierala
2018-02-27Improve missing tty handling in init(8). This removes a check that didEdward Tomasz Napierala
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-10-25Implement power cycle in init.Warner Losh
2017-10-03Correct sense of crypt(3) NULL checks in init(8) and lock(1)Conrad Meyer
2017-07-07 - Use strlcat() instead of strncat().Xin LI
2017-02-28Renumber copyright clause 4Warner Losh
2016-10-07Add verbosity around failed reboot(2) call.Konstantin Belousov
2016-10-07When making a pause after detecting hard kill of the single-userKonstantin Belousov
2016-05-16For pointers use NULL instead of 0.Marcelo Araujo
2016-05-11When rerooting, take the init(8) path from argv[0] instead of fetchingEdward Tomasz Napierala
2016-05-11When rerooting, ignore ESRCH returned from kill(2). I couldn't reproduceEdward Tomasz Napierala
2016-04-19Use NULL instead of 0 for pointers.Marcelo Araujo
2015-11-11Fix resource leaks in error cases.Edward Tomasz Napierala
2015-11-08Userspace part of reroot support. This makes it possible to changeEdward Tomasz Napierala
2015-10-01Disable suspend when we're shutting down. This solves the "tell FreeBSDColin Percival
2014-08-17Remove LOG_ODELAY because it does nothing.Neel Natu
2014-02-08init: Remove code to track line numbers in /etc/ttys.Jilles Tjoelker
2013-08-13init: Set kernel login class and CPU mask on new processes.Jilles Tjoelker
2012-05-25init: Remove unnecessary 2-second delay before calling reboot(2).Jilles Tjoelker
2012-04-06Properly clear the O_NONBLOCK flag after opening the TTY.Ed Schouten
2012-03-14Make init(8) slightly more robust when /dev/console is missing.Ed Schouten
2012-03-11Fix whitespace.Ed Schouten
2012-02-22Handle NULL return from crypt(3). Mostly from DragonFlyKevin Lo
2012-02-11Move utmpx handling out of init(8).Ed Schouten
2011-11-04Add missing static keywords for global variables to tools in sbin/.Ed Schouten
2011-01-23init: Only run /etc/rc.shutdown if /etc/rc was run.Jilles Tjoelker
2010-01-27Remove stale inclusion of <ulog.h>.Ed Schouten
2010-01-13Migrate init(8) towards utmpx.Ed Schouten
2009-12-05Let init(8) and reboot(8) use utmpx to log wtmp entries.Ed Schouten