我正在尝试删除尽可能多的进程,以最大限度地缩短运行 ubuntu minimal 的 beaglebone 的启动时间。因此,我想删除 udev-fallback-graphics 和所有 plymouth 进程。我尝试了“sysv-rc-conf”和“rcconf”以及“update-rc.d -f”,但都不起作用。通过删除这些进程,我可以节省大约 4-5 秒,这对我的项目非常重要。dmesg 给了我以下信息:
[ 7.855712] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.704010] init: udev-fallback-graphics main process (443) terminated with status 1
[ 10.853881] PHY: 0:00 - Link is Up - 100/Full
[ 10.854125] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 11.418457] init: plymouth main process (174) killed by ABRT signal
[ 11.446380] init: plymouth-splash main process (470) terminated with status 2
[ 13.843292] init: plymouth-stop pre-start process (686) terminated with status 1
答案1
https://askubuntu.com/questions/19320/whats-the-recommended-way-to-enable-disable-services
upstart 服务不受任何 sysvinit 配置工具的影响。显然,要禁用 SERVICE,您需要创建一个包含单词“manual”的文件 /etc/init/SERVICE.override。