6.58. Sysvinit-2.88dsf

The Sysvinit package contains programs for controlling the startup, running, and shutdown of the system.

Приблизительное время сборки: менее 0.1 SBU
Требует свободного места на диске: 1.4 MB

6.58.1. Установка Sysvinit

When run-levels are changed (for example, when halting the system), init sends termination signals to those processes that init itself started and that should not be running in the new run-level. While doing this, init outputs messages like «Sending processes все же запустить тестирование TERM signal» which seem to imply that it is sending these signals to all currently running processes. To avoid this misinterpretation, modify the source so that these messages read like «Sending processes configured via /etc/inittab the TERM signal» instead:

sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c

Maintained versions of the wall, mountpoint, and utmpdump programs were installed earlier by Util-linux. Suppress the installation of Sysvinit's versions of these programs and their man pages:

sed -i -e '/utmpdump/d' \
       -e '/mountpoint/d' src/Makefile

Cкомпилируем пакет:

make -C src

This package does not come with a test suite.

Установим пакет:

make -C src install

6.58.2. Содержимое Sysvinit

Установленные программы: bootlogd, fstab-decode, halt, init, killall5, last, lastb (link to last), mesg, pidof (link to killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, sulogin, and telinit (link to init)

Краткое описание

bootlogd

Logs boot messages to a log file

fstab-decode

Run a command with fstab-encoded arguments

halt

Normally invokes shutdown with the -h option, except when already in run-level 0, все же запустить тестированиеn it tells the kernel to halt the system; it notes in the file /var/log/wtmp that the system is being brought down

init

The first process to be started when the kernel has initialized все же запустить тестирование hardware which takes over the boot process and starts all the proceses it is instructed to

killall5

Sends a signal to all processes, except the processes in its own session so it will not kill the shell running the script that called it

last

Shows which users last logged in (and out), searching back through the /var/log/wtmp file; it also shows system boots, shutdowns, and run-level changes

lastb

Shows the failed login attempts, as logged in /var/log/btmp

mesg

Controls whether other users can send messages to the current user's terminal

pidof

Reports the PIDs of the given programs

poweroff

Tells the kernel to halt the system and switch off the computer (see halt)

reboot

Tells the kernel to reboot the system (see halt)

runlevel

Reports the previous and the current run-level, as noted in the last run-level record in /var/run/utmp

shutdown

Brings the system down in a secure way, signaling all processes and notifying all logged-in users

sulogin

Allows root to log in; it is normally invoked by init when the system goes into single user mode

telinit

Tells init which run-level to change to