<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/init/init.8, branch upstream/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2012-03-26T15:18:14Z</updated>
<entry>
<title>mdoc: terminate quoted strings.</title>
<updated>2012-03-26T15:18:14Z</updated>
<author>
<name>Joel Dahl</name>
<email>joel@FreeBSD.org</email>
</author>
<published>2012-03-26T15:18:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c2965cd1854b75e6a13cb4bd6759b71adc8d2a87'/>
<id>urn:sha1:c2965cd1854b75e6a13cb4bd6759b71adc8d2a87</id>
<content type='text'>
Reviewed by:	brueffer
</content>
</entry>
<entry>
<title>Make init(8) slightly more robust when /dev/console is missing.</title>
<updated>2012-03-14T16:22:09Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-03-14T16:22:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c2c7b2c9461801cdc2b12fb342d39207e92c445'/>
<id>urn:sha1:4c2c7b2c9461801cdc2b12fb342d39207e92c445</id>
<content type='text'>
If the environment doesn't offer a working /dev/console, the existing
version of init(8) will simply refuse running rc(8) scripts. This means
you'll only have a system running init(8) and nothing else.

Change the code to do the following:

- Open /dev/console like we used to do, but make it more robust to use
  O_NONBLOCK to prevent blocking on a carrier.
- If this fails, use /dev/null as stdin and /var/log/init.log as stdout
  and stderr.
- If even this fails, use /dev/null as stdin, stdout and stderr.

So why us this useful? Well, if you remove the `getpid() == 1' check in
main(), you can now use init(8) inside jails to properly execute rc(8).
It still requires some polishing, as existing tools assume init(8) has
PID 1.

Also it is now possible to use use init(8) on `headless' devices that
don't even have a serial boot console.
</content>
</entry>
<entry>
<title>Move utmpx handling out of init(8).</title>
<updated>2012-02-11T20:47:16Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-02-11T20:47:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c21ae3a403b8fbf817d4e11ccaf4a67ad8495450'/>
<id>urn:sha1:c21ae3a403b8fbf817d4e11ccaf4a67ad8495450</id>
<content type='text'>
This has the following advantages:

- During boot, the BOOT_TIME record is now written right after the file
  systems become writable, but before users are allowed to log in. This
  means that they can't cause `hidden logins' by logging in right before
  init(8) kicks in.

- The pututxline(3) function may potentially block on file locking,
  though this is very rare to occur. By placing it in an rc script, the
  user can still kill it with ^C if needed.

- Most importantly: jails don't use init(8). This means that a force
  reboot of a system running jails will leave stale entries in the
  accounting database of the jails individually.
</content>
</entry>
<entry>
<title>- change "is is" to "is" or "it is"</title>
<updated>2011-10-16T14:30:28Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2011-10-16T14:30:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36daf0495aa68d669ac6abf004940ec1b1e83e42'/>
<id>urn:sha1:36daf0495aa68d669ac6abf004940ec1b1e83e42</id>
<content type='text'>
- change "the the" to "the"

Approved by:	lstewart
Approved by:	sahil (mentor)
MFC after:	3 days
</content>
</entry>
<entry>
<title>init(8): Document that login(1) is now responsible for recording logouts.</title>
<updated>2011-01-23T14:54:45Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2011-01-23T14:54:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=61bb1f43138ae0863aec7b0c280a7bc8f241e21e'/>
<id>urn:sha1:61bb1f43138ae0863aec7b0c280a7bc8f241e21e</id>
<content type='text'>
init(8) only uses utmpx for recording reboots and shutdowns.
</content>
</entry>
<entry>
<title>Remove stale references to utmp(5) and its corresponding filenames.</title>
<updated>2010-01-21T17:25:12Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-01-21T17:25:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0806dd92385d0aec9cc43ef516f8387b1621dd6e'/>
<id>urn:sha1:0806dd92385d0aec9cc43ef516f8387b1621dd6e</id>
<content type='text'>
I removed utmp and its manpage, but not other manpages referring to it.
</content>
</entry>
<entry>
<title>Fix typo: effected -&gt; affected</title>
<updated>2007-01-02T09:12:37Z</updated>
<author>
<name>Ralf S. Engelschall</name>
<email>rse@FreeBSD.org</email>
</author>
<published>2007-01-02T09:12:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7090a0c6be95985c2df84909f44edcb6984aa710'/>
<id>urn:sha1:7090a0c6be95985c2df84909f44edcb6984aa710</id>
<content type='text'>
Submitted by: Gordon Stratton &lt;tsr2600 (at) gmail (dot) com&gt;
</content>
</entry>
<entry>
<title>-mdoc sweep.</title>
<updated>2005-11-18T10:36:29Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-11-18T10:36:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4e9e907d636ef7f776d89d98bd778f740ee69cdd'/>
<id>urn:sha1:4e9e907d636ef7f776d89d98bd778f740ee69cdd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix system shutdown timeout handling by again supporting longer running</title>
<updated>2005-09-15T13:16:07Z</updated>
<author>
<name>Ralf S. Engelschall</name>
<email>rse@FreeBSD.org</email>
</author>
<published>2005-09-15T13:16:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=724447ac41a82a6c5a459edbf947c6489200897a'/>
<id>urn:sha1:724447ac41a82a6c5a459edbf947c6489200897a</id>
<content type='text'>
shutdown procedures (which have a duration of more than 120 seconds).

We have two user-space affecting shutdown timeouts: a "soft" one in
/etc/rc.shutdown and a "hard" one in init(8). The first one can be
configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults
to 30 seconds. The second one was originally (in 1998) intended to be
configured via sysctl(8) variable "kern.shutdown_timeout" and defaults
to 120 seconds.

Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999
(as it obviously is actually not used within the kernel itself) and
hence was intentionally but misleadingly removed in revision 1.107 from
init_main.c. Kernel sysctl(8) variables are certainly a wrong way to
control user-space processes in general, but in this particular case the
sysctl(8) variable should have remained as it supports init(8), which
isn't passed command line flags (which in turn could have been set via
/etc/rc.conf), etc.

As there is already a similar "kern.init_path" sysctl(8) variable which
directly affects init(8), resurrect the init(8) shutdown timeout under
sysctl(8) variable "kern.init_shutdown_timeout". But this time document
it as being intentionally unused within the kernel and used by init(8).
Also document it in the manpages init(8) and rc.conf(5).

Reviewed by: phk
MFC after: 2 weeks
</content>
</entry>
<entry>
<title>Moved descriptions of securelevels from init(7) to security(7).</title>
<updated>2005-09-03T17:16:00Z</updated>
<author>
<name>Gary W. Swearingen</name>
<email>garys@FreeBSD.org</email>
</author>
<published>2005-09-03T17:16:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e17c0e3256538c4ceddf4cd8c2a0a1940f89024f'/>
<id>urn:sha1:e17c0e3256538c4ceddf4cd8c2a0a1940f89024f</id>
<content type='text'>
Files used both "securelevel" and either "secure level" or
"security level"; all are now "security level".

PR:             docs/84266
Submitted by:   garys
Approved by:    keramida
MFC after:      3 days
</content>
</entry>
</feed>
