0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

LPICレベル1を勉強しているあなたへ - systemdでデフォルトのランレベルを設定する方法 -

Posted at

systemdでは、

「/lib/systemd/system/runlevel[0-6].target」ファイル
([0-6]部分はランレベルを指定)

のシンボリックリンクを

「/etc/systemd/system/default.target」

として作成することでデフォルトのランレベルを設定できます。

例)デフォルトのランレベルを3に設定する場合

ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target

デフォルトのランレベルに0または6を設定してはいけません。
設定すると、起動してもすぐに停止または、
再起動を繰り返してしまいます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?