#author("2025-04-15T10:36:33+00:00","default:iseki","iseki")
#author("2025-04-15T10:36:41+00:00","default:iseki","iseki")
** systemd [#pea6c59b]

*** target [#za614929]
- SysVinit の runlevel の代わり
|runlevel | target |
| 0 | poweroff |
| 1 | rescue |
| 2,3 | multi-user |
| 4 | (未使用) |
| 5 | graphical |
| 6 | reboot |

- 現在の target 
-- systemctl get-default

**** target の変更 [#v3ecfecd]
- systemctl set-default multi-user
- reboot

*** Service [#nfd76cdf]
- ''/usr/lib/systemd/system/'' にサービスの起動用ファイルを置く
-- 例:/usr/lib/systemd/system/apache.service
- ''systemctl enable サービス名'' で ''/etc/systemd/system/multi-user.target.wants/サービス名.service'' から /usr/lib/systemd/system/ へ シンボリックリンクが張られる.
-- 例:apache.service -> /usr/lib/systemd/system/apache.service

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS