Ubuntu 6.10 修改 runlevel

Ubuntu 6.10 修改 runlevel

原本的 inittabupstart 所取代,

upstart 設定檔在 /etc/event.d

> # This task guesses what the "default runlevel" should be and starts the# appropriate script.start on stopped rcSscriptrunlevel --reboot || trueif grep -q -w -- "-s\|single\|S" /proc/cmdline; thentelinit Selif [ -r /etc/inittab ]; thenRL="\$(sed -n -e "/\^id:[0-9]*:initdefault:/{s/\^id://;s/:.*//;p}" /etc/inittab || true)"if [ -n "\$RL" ]; thentelinit \$RLelsetelinit 2fielsetelinit 2fiend script


  1. 直接修改 rc-default 把 "tlinit 2" 數字換成你要的 runlevel

  2. 直接新增 /etc/inittab 輸入

> # The default runlevel.id:1:initdefault:

What is Upstart

Upstart is an event-based replacement for the "/sbin/init" daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.

It was originally developed for the Ubuntu distribution, but is intended to be suitable for deployment in all Linux distributions as a replacement for the venerable System-V init.

convert from Thomas blog post id 85 old convert log: ./115254/tag%3E2007%2005%20linux%20ubuntu)

@2007 @05 @linux @ubuntu