aboutsummaryrefslogtreecommitdiff
path: root/sbin/init/init.c
Commit message (Expand)AuthorAgeFilesLines
* Remove risky compatability with old kernelsBrooks Davis2020-09-021-20/+2
* init(8): set environment variables from the "daemon" class as wellKyle Evans2020-02-051-0/+1
* Small tweak to the default behavior of shutdown -cWarner Losh2020-01-171-2/+4
* init: pedantic correction to "can't exec" script warningEd Maste2019-03-261-1/+1
* Consistently use NULL to terminate the argv; no functional changes.Edward Tomasz Napierala2018-08-171-7/+7
* Add init_exec kenv(1) variable, to make init(8) execute a fileEdward Tomasz Napierala2018-08-141-0/+22
* Use NULLs instead of casted zeroes, for consistency.Edward Tomasz Napierala2018-08-091-7/+7
* Refactor common code into execute_script().Edward Tomasz Napierala2018-08-091-76/+56
* Make it possible for init to execute any executable, not just sh(1)Edward Tomasz Napierala2018-08-041-2/+32
* Improve missing tty handling in init(8). This removes a check that didEdward Tomasz Napierala2018-02-271-14/+36
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
* Implement power cycle in init.Warner Losh2017-10-251-3/+4
* Correct sense of crypt(3) NULL checks in init(8) and lock(1)Conrad Meyer2017-10-031-1/+1
* - Use strlcat() instead of strncat().Xin LI2017-07-071-6/+6
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* Add verbosity around failed reboot(2) call.Konstantin Belousov2016-10-071-2/+7
* When making a pause after detecting hard kill of the single-userKonstantin Belousov2016-10-071-1/+9
* For pointers use NULL instead of 0.Marcelo Araujo2016-05-161-4/+4
* When rerooting, take the init(8) path from argv[0] instead of fetchingEdward Tomasz Napierala2016-05-111-16/+9
* When rerooting, ignore ESRCH returned from kill(2). I couldn't reproduceEdward Tomasz Napierala2016-05-111-1/+3
* Use NULL instead of 0 for pointers.Marcelo Araujo2016-04-191-4/+4
* Fix resource leaks in error cases.Edward Tomasz Napierala2015-11-111-8/+9
* Userspace part of reroot support. This makes it possible to changeEdward Tomasz Napierala2015-11-081-15/+269
* Disable suspend when we're shutting down. This solves the "tell FreeBSDColin Percival2015-10-011-0/+14
* Remove LOG_ODELAY because it does nothing.Neel Natu2014-08-171-1/+1
* init: Remove code to track line numbers in /etc/ttys.Jilles Tjoelker2014-02-081-16/+4
* init: Set kernel login class and CPU mask on new processes.Jilles Tjoelker2013-08-131-1/+2
* init: Remove unnecessary 2-second delay before calling reboot(2).Jilles Tjoelker2012-05-251-2/+0
* Properly clear the O_NONBLOCK flag after opening the TTY.Ed Schouten2012-04-061-1/+5
* Make init(8) slightly more robust when /dev/console is missing.Ed Schouten2012-03-141-11/+27
* Fix whitespace.Ed Schouten2012-03-111-8/+8
* Handle NULL return from crypt(3). Mostly from DragonFlyKevin Lo2012-02-221-1/+2
* Move utmpx handling out of init(8).Ed Schouten2012-02-111-31/+0
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-4/+4
* init: Only run /etc/rc.shutdown if /etc/rc was run.Jilles Tjoelker2011-01-231-10/+35
* Remove stale inclusion of <ulog.h>.Ed Schouten2010-01-271-1/+0
* Migrate init(8) towards utmpx.Ed Schouten2010-01-131-3/+6
* Let init(8) and reboot(8) use utmpx to log wtmp entries.Ed Schouten2009-12-051-5/+11
* Remove redundant code from runshutdown() now tcsetsid(3) works reliably.Ed Schouten2009-06-151-18/+1
* Fix the staircase issue properly this time.Ed Schouten2009-06-141-0/+8
* Static-ify procedures in init(8).Xin LI2008-09-271-78/+78
* Addition style(9) change.David E. O'Brien2007-11-201-3/+3
* style(9)David E. O'Brien2007-11-201-93/+94
* Patches to allow one to allow one to specify a directory to chroot to.Warner Losh2007-02-041-63/+139
* Reparent the process that executes the window= command from the ttysKonstantin Belousov2006-06-081-1/+13
* Fix system shutdown timeout handling by again supporting longer runningRalf S. Engelschall2005-09-151-1/+1
* Make WARNS=6 happy with our init(8):Xin LI2005-01-111-24/+39
* Turns out that revision 1.52 was a bad idea. It broke the longWarner Losh2004-09-281-1/+1
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
* Fixed misspellings of 0 as NULL.Bruce Evans2004-03-111-2/+2