Linux Init Configuration (inittab & OpenRC)
- OpenRC - Gentoo Wiki链接wiki.gentoo.org/wiki/OpenRCOpenRC - Gentoo Wiki · SysVinit - ArchWiki · SysVinit: inittab - ArchWiki · OpenRC: openrc-init - Gentoo Wiki · [!NOTE] · Note that when using , the file is not used.笔记:Linux Init Configuration (inittab & OpenRC)
- SysVinit - ArchWiki
- SysVinit: inittab - ArchWiki
- OpenRC: openrc-init - Gentoo Wiki
[!NOTE] Note that when using
openrc-init, the/etc/inittabfile is not used. To hide boot messages from OpenRC, you can edit/etc/inittaband add--quietto every openrc command.
inittab example
::sysinit:/sbin/openrc sysinit
::sysinit:/sbin/openrc boot
::wait:/sbin/openrc default
# Set up a couple of getty's
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
tty4::respawn:/sbin/getty 38400 tty4
tty5::respawn:/sbin/getty 38400 tty5
tty6::respawn:/sbin/getty 38400 tty6
# Put a getty on the serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
::shutdown:/sbin/openrc shutdownSnippets
# Add agetty for tty 1-6
for n in $(seq 1 6); do
ln -s agetty agetty.tty$n
rc-config add agetty.tty$n default
doneTroubleshooting
can't open /dev/ttyS0: No such file or directory
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
其他外链4 条
- wiki.archlinux.org/index.php/SysVinitwiki.archlinux.org/index.php/SysVinit
- wiki.gentoo.org/wiki/OpenRCwiki.gentoo.org/wiki/OpenRC
- wiki.gentoo.org/wiki/OpenRC/openrc-initwiki.gentoo.org/wiki/OpenRC/openrc-init
- www.raspberrypi.org/forums/viewtopic.php?t=224369www.raspberrypi.org/forums/viewtopic.php?t=224369