History log of /dragonfly/sbin/init/init.c (Results 1 – 25 of 35)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f0e61bb7 20-Sep-2023 Aaron LI <aly@aaronly.me>

ttys: Add 'ifexists' option to enable ttys only if exists

Implement the 'ifexists' ttys option in init(8) to enable a tty only if
it exists. This allows one to turn off getty for ttys that aren't
p

ttys: Add 'ifexists' option to enable ttys only if exists

Implement the 'ifexists' ttys option in init(8) to enable a tty only if
it exists. This allows one to turn off getty for ttys that aren't
present (e.g., on a headless system), and thus prevent getty error logs
from filling up /var/log/messages; e.g.,

------
Sep 20 09:13:07 microserver getty[236362]: open /dev/ttyv0: No such file or directory
Sep 20 09:13:07 microserver getty[236404]: open /dev/ttyv0: No such file or directory
Sep 20 09:13:07 microserver getty[236405]: open /dev/ttyv0: No such file or directory
Sep 20 09:13:07 microserver getty[236406]: open /dev/ttyv0: No such file or directory
Sep 20 09:13:07 microserver getty[236407]: open /dev/ttyv0: No such file or directory
Sep 20 09:13:07 microserver init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs
------

Update the ttys(5) and getttyent(3) man pages accordingly.

The updates to ttys files will follow.

Discussed-with: dillon
Credit: https://reviews.freebsd.org/D10037

show more ...


Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0
# d50f9ae3 27-Sep-2020 Sascha Wildner <saw@online.de>

world: Staticize various variables and also remove a couple of unused ones.


Revision tags: v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3
# 25606b42 11-Sep-2019 Sascha Wildner <saw@online.de>

Adjust numerous manual pages, scripts and Makefiles for the utmp removal.

Also remove /var/run/utmp and /var/log/lastlog via 'make upgrade'. Keep
any /var/log/wtmp and /var/log/wtmp.* files in case

Adjust numerous manual pages, scripts and Makefiles for the utmp removal.

Also remove /var/run/utmp and /var/log/lastlog via 'make upgrade'. Keep
any /var/log/wtmp and /var/log/wtmp.* files in case the user wants to
convert them with wtmpcvt(1).

show more ...


# 0440d3be 10-Sep-2019 Sascha Wildner <saw@online.de>

init(8): Switch to utmpx. Drop utmp support.


# 9d64a367 29-Aug-2019 Sascha Wildner <saw@online.de>

init(8): Pass waitpid() status to clear_session_logs() and log to wtmpx.

Taken-from: NetBSD


Revision tags: v5.6.2
# 330f1ef9 30-Jun-2019 Sascha Wildner <saw@online.de>

init(8): Put utmp/wtmp specific code under SUPPORT_UTMP.


Revision tags: v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2
# 41f298c6 03-Jun-2018 Sascha Wildner <saw@online.de>

init/oinit: Remove some old, unused/obsolete paths and comments.

Seems the _PATH_SLOGGER was defined but not used since at least 4.4BSD.

Reported-by: aly


Revision tags: v5.2.1
# 1b11ea06 09-Apr-2018 Sascha Wildner <saw@online.de>

Remove a number of duplicated includes in userland.


# 08328df0 07-Apr-2018 Sascha Wildner <saw@online.de>

Remove usage of syslog(3)'s LOG_ODELAY because it is the default.


Revision tags: v5.2.0, v5.3.0, v5.2.0rc
# 70675b40 16-Feb-2018 Eitan Adler <lists@eitanadler.com>

Convert from __arysize to NELEM

Try to use a single macro across the board

Discussed-with: zrj, swildner


# d8312043 29-Jan-2018 zrj <rimvydas.jasinskas@gmail.com>

init(8): Convert to use sig_atomic_t.

Instead of returning function pointer, now return enum for the next state.

Avoids -Wcast-function-type warnings.

Taken-from: OpenBSD


Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1
# ad2b45be 23-Sep-2017 Lubos Boucek <bouceklubos@gmail.com>

Fix seg-faults on crypt(3) failure


Revision tags: v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc, v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc
# fda9d792 26-May-2015 Matthew Dillon <dillon@apollo.backplane.com>

ttys - Add 'ifconsole' option to ttys entries

* Add the 'ifconsole' option. This allows you to construct a line as shown
below to enable a getty (e.g. on a serial port) only if the tty is the
s

ttys - Add 'ifconsole' option to ttys entries

* Add the 'ifconsole' option. This allows you to construct a line as shown
below to enable a getty (e.g. on a serial port) only if the tty is the
system console.

ttyd0 "/usr/libexec/getty std.9600" dialup on secure ifconsole

The ifconsole option also silently disables any devices which do not
exist, removing unnecessary console spam.

* Modify libc and init to handle the new flag.

* Modify the nrelease build and ttys defaults to use this option for
ttyd0, ttyd1, ttyd2, and ttyd3.

* Avoids previously reported issues with system crashes on certain machines
whos serial ports are not implemented properly without having to fully
disable the default ttyd* getty feature. If the serial port isn't the
console, it won't be enabled.

* Add a sysctl to the kernel which init needs to test whether a tty is the
console or not.

Suggested-by: swildner

show more ...


Revision tags: v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3
# dc71b7ab 31-May-2013 Justin C. Sherrill <justin@shiningsilence.com>

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

Apparently everyone's doing it:
http://svnweb.freebsd.org/base?view=revision&revision=251069

Submitted-by: "Eitan Adler" <lists at eitanadl

Correct BSD License clause numbering from 1-2-4 to 1-2-3.

Apparently everyone's doing it:
http://svnweb.freebsd.org/base?view=revision&revision=251069

Submitted-by: "Eitan Adler" <lists at eitanadler.com>

show more ...


Revision tags: v3.4.2
# 25a2db75 06-May-2013 Justin C. Sherrill <justin@shiningsilence.com>

Remove advertising header from all userland binaries.

From: Eitan Adler <lists@eitanadler.com>


Revision tags: v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2
# 699c19e3 14-Nov-2012 Sascha Wildner <saw@online.de>

init(8): Resurrect kern.shutdown_timeout as kern.init_shutdown_timeout.

Taken from FreeBSD. Quoting their commit msg:

Fix system shutdown timeout handling by again supporting longer running
shutdow

init(8): Resurrect kern.shutdown_timeout as kern.init_shutdown_timeout.

Taken from FreeBSD. Quoting their commit msg:

Fix system shutdown timeout handling by again supporting longer running
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).

show more ...


Revision tags: v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2
# 678e8cc6 05-Mar-2012 Sascha Wildner <saw@online.de>

Sweep-fix comparing pointers with 0 (and assigning 0 to pointers).

For better readability, don't compare pointers with 0 or assign 0
to them. Use NULL instead.

The change was done with coccinelle.


Revision tags: v3.0.1, v3.1.0, v3.0.0
# 69ced433 21-Dec-2011 Sascha Wildner <saw@online.de>

Remove some __STDC__ checks.


# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2, v2.3.1, v2.2.1
# 2038fb68 06-Apr-2009 Sascha Wildner <saw@online.de>

Replace all casts of NULL to something with NULL.


# 902ec341 05-Apr-2009 Sascha Wildner <saw@online.de>

Generally use NULL instead of explicitly casting 0 to some pointer type (part2).


# 60233e58 05-Apr-2009 Sascha Wildner <saw@online.de>

Generally use NULL instead of explicitly casting 0 to some pointer type.


# 66e99e68 25-Feb-2009 Sascha Wildner <saw@online.de>

init(8): Fix amd64 warnings.


Revision tags: v2.2.0, v2.3.0, v2.1.1, v2.0.1
# eecd52b2 25-Nov-2007 Sascha Wildner <swildner@dragonflybsd.org>

Fix some mis-usages of NULL.


# 92b053c8 06-Nov-2005 Sascha Wildner <swildner@dragonflybsd.org>

Cleanup:

- Remove 'register' storage class specifiers.


12