すぐに忘れちゃうので、systemctl コマンドの使い方をここにメモします。
コマンド | 説明 |
systemctl start ${Unit} | サービス起動 |
systemctl stop ${Unit} | サービス停止 |
systemctl restart ${Unit} | サービス再起動 |
systemctl reload ${Unit} | サービスリロード |
systemctl status ${Unit} | サービスステータス表示 |
systemctl enable ${Unit} | サービス自動起動有効 |
systemctl disable ${Unit} | サービス自動起動無効 |
systemctl is-enabled ${Unit} | サービス自動起動設定確認 |
systemctl list-unit-files --type=service | サービス一覧 |
systemctl daemon-reload | 設定ファイルの再読込 |