<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sbin/init/init.c, branch release/7.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=release%2F7.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=release%2F7.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2008-03-16T07:52:22Z</updated>
<entry>
<title>MFC: revs 1.64-65: style(9)</title>
<updated>2008-03-16T07:52:22Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2008-03-16T07:52:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8b0c6fd0536764e679292f1ef24fc2dffd959005'/>
<id>urn:sha1:8b0c6fd0536764e679292f1ef24fc2dffd959005</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patches to allow one to allow one to specify a directory to chroot to.</title>
<updated>2007-02-04T06:33:13Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-02-04T06:33:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1a7bec91fb6983eee09a4d20a1dad728b64bd183'/>
<id>urn:sha1:1a7bec91fb6983eee09a4d20a1dad728b64bd183</id>
<content type='text'>
This includes support for running a script to setup that directory.
The kenv variables init_chroot and init_script control this behavior,
and are documented in loader(8) that's about to be committed (along
with the other variables like init_path...).

Submitted by: Oliver Fromme
Reviewed by: myself, jhb (earlier versions)
</content>
</entry>
<entry>
<title>Reparent the process that executes the window= command from the ttys</title>
<updated>2006-06-08T14:04:36Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2006-06-08T14:04:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5010c3b657c9497ce3e948324b487f1933bcf6eb'/>
<id>urn:sha1:5010c3b657c9497ce3e948324b487f1933bcf6eb</id>
<content type='text'>
to the init. This prevents zombies from being accumulated.

PR:		bin/64198
Tested by:	Eugene Grosbein &lt;eugen at www svzserv kemerovo su&gt;
Approved by:	kan (mentor)
MFC after:	1 month
</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-test/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>Make WARNS=6 happy with our init(8):</title>
<updated>2005-01-11T14:34:29Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2005-01-11T14:34:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ab03e6d5971541e1d1c4d1f181638284f3ec1ee8'/>
<id>urn:sha1:ab03e6d5971541e1d1c4d1f181638284f3ec1ee8</id>
<content type='text'>
	- Use more ``const''s where suitable.
	- Define strk() as a static function in global scope.
	  This avoids the "nested extern declaration" warnings.
	- Use static initialization of strings, rather than
	  referring string constants through char *.
	- Bump WARNS from 0 to 6.
</content>
</entry>
<entry>
<title>Turns out that revision 1.52 was a bad idea.  It broke the long</title>
<updated>2004-09-28T04:22:55Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2004-09-28T04:22:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=89e3b380f9983b1f6a59afea3061b268c230f6a0'/>
<id>urn:sha1:89e3b380f9983b1f6a59afea3061b268c230f6a0</id>
<content type='text'>
standing ability to list a non-existant device in /etc/ttys to keep it
from dying.  This is a documented feature of init(8):
     The init utility can also be used to keep arbitrary daemons running,
     automatically restarting them if they die.  In this case, the first field
     in the ttys(5) file must not reference the path to a configured device
     node and will be passed to the daemon as the final argument on its com-
     mand line.  This is similar to the facility offered in the AT&amp;T System V
     UNIX /etc/inittab.

So rather than fix the man page to 'break' this feature, back out the change.

At the time this change was made, people felt that the spamage from
getty was annoying on headless consoles.  Andrew Gallatin noted:
&gt; Most of my machines are headless without video cards and use a serial
&gt; console.  With devfs this means that /dev/ttyv[1-N] do not exist and
&gt; getty bitches like this:
&gt;
&gt; Sep 26 11:00:11 monet getty[543]: open /dev/ttyv1: No such file or directory

and we went off and applied this hack rather than fixing getty to
sleep forever when it gets an unknown device, as was Andrew's other
suggestion.  Since it breaks things, I'm off to do that instead.
</content>
</entry>
<entry>
<title>Remove advertising clause from University of California Regent's license,</title>
<updated>2004-04-09T19:58:40Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2004-04-09T19:58:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4c723140a407d2ba326c134a26cec9569dc52d46'/>
<id>urn:sha1:4c723140a407d2ba326c134a26cec9569dc52d46</id>
<content type='text'>
per letter dated July 22, 1999.

Approved by: core, imp
</content>
</entry>
<entry>
<title>Fixed misspellings of 0 as NULL.</title>
<updated>2004-03-11T10:01:12Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2004-03-11T10:01:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=30e8350c6009ecdd17ccceec5a747629a7e7e9a6'/>
<id>urn:sha1:30e8350c6009ecdd17ccceec5a747629a7e7e9a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the case where one goes from zero to more than zero items enabled</title>
<updated>2003-12-05T04:28:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2003-12-05T04:28:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=35fc132143957271ecaaf66b16ab8b289a8318cf'/>
<id>urn:sha1:35fc132143957271ecaaf66b16ab8b289a8318cf</id>
<content type='text'>
in /etc/ttys.  Before this fix, once the count of active services
reaches 0, one could never restart any more without a reboot.

Steve Passe did the leg work on this patch.  After he found the fix,
we discovered that an identical fix had been made to NetBSD.

Approved by: re@ &lt;scottl&gt;
Approval tool: peril sensitive sunglasses
</content>
</entry>
<entry>
<title>Back out the previous commit, since there could be dire consequences if</title>
<updated>2002-12-17T21:23:36Z</updated>
<author>
<name>Brian Feldman</name>
<email>green@FreeBSD.org</email>
</author>
<published>2002-12-17T21:23:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f45a1cab594145f16dad26f4b40f7e06f012fe00'/>
<id>urn:sha1:f45a1cab594145f16dad26f4b40f7e06f012fe00</id>
<content type='text'>
/etc/rc were accidentally executed (as requested by other committeers).
</content>
</entry>
</feed>
