Linuxの起動・シャットダウン†
Linuxの起動†
dmesg†
journalctl†
- 起動時のカーネルの処理を表示
journalctl -kb
起動時のログ†
/var/log/dmesg
/var/log/messages
/var/log/boot.log
Linuxのシャットダウン・再起動†
shutdown†
- 即時
shutdown -h now ※システムを停止
shutdown -r now ※システムを再起動
shurdown -k now "comment" ※システムを停止しないで、ログインしているユーザーにメッセージを表示
- 指定した時間後
shutdown -h +15 "comment" ※15分後にシステムを停止。ログインしているユーザーにメッセージを表示
- 指定した時刻
shutdown -r 23:00 ※23時にシステムを再起動
- 予約の取り消し
- Ctl + C
- 別の端末から
shutdown -c
reboot ※再起動†
reboot
halt ※システム停止†
poweroff ※システム停止†
OSを起動する仕組み†
- アプリケーションの自動起動の設定など
- SysVinitは古くからある仕組みで、新しくsystemd、Upstart が登場している
systemctl†
chkconfig†
service†
update-rc.d†
関連用語†