init will try to open its own console. If not, then any console=
parameters will be ignored. This avoids conflicts with native kernel
created consoles.
displaying output. In this mode pidof simply returns true or false
without displaying PID values.
Updated manual page with new -q (quiet) mode.
Added -h flag for pidof, which was recognized before, but not used.
The -h flag now displays brief usage information for pidof.
This information can be read by the "runlevel" command as well as "halt"
and "reboot". Having the information logged in /var/run/runlevel as
well as the utmp file means systems without utmp (like those running
the musl C library) can still check the current runlevel. This is
useful when running halt/reboot as these programs want to check the
runlevel.
Updated the changelog, and manual pages for halt and runlevel.
from /var/run/runlevel. Added test code to runlevel.c to confirm it works.
Will use this to save/restore runlevel on systems where utmp is not
available.
approaches are tried in order to prevent warnings from GCC 7 (and newer).
Added includes on Linux for sys/sysmacros.h as the old defines in
the sys/types.h file will be removed in the future.
it closes (and leaves closed) the named pipe /run/initctl. This
can be used to make sure init does not have any files open. However,
it also means we cannot switch run levels or bring down the system.
The pipe can be re-opened by sending init the SIGUSR1 signal.
Updated the man pages for initctl and init to include this information.
notice. For example if the computer was in sleep mode pending
a shutdown. The shutdown command now notices time has past
and adjusts its countdown clock to compensate. Accurate
to the nearest minute.
Closes Savannah bug #36279
Fixed typo in accidental wrote_wtmp_rlevel == 0 || wrote_wtmp_rlevel
comparison so the latter is wrote_utmp_rlevel.
Simplified logic in mountpoint.c when testing for same device or same inode.
Thanks to David Binderman for pointing out the above three issues.
the -p parameter. This works around mountpoint not recognizing
circular mounts where /a/b/c/d and /a/b are the same location
(ie the same device and same inode).
Closes Savannah bug #37114.
systems.
Updated copyright notice.
Fixed start-stop-daemon.c so that it will compile.
Updated install instructions.
Removed references to "obsolete" directory which, fittingly,
no longer exists.