hidekiwiki


にほんブログ村 IT技術ブログへ
にほんブログ村

Centos6までのサービス系コマンドと、systemctlコマンドの対比表

起動スクリプトサービスsystemctl詳細
/etc/init.d/"name" startservice "name" startsystemctl start "name.service"サービスを起動します。
/etc/init.d/"name" stopservice "name" stopsystemctl stop "name.service"サービスを停止します。
/etc/init.d/"name" restartservice "name" restartsystemctl restart "name.service"サービスを再起動します。
/etc/init.d/"name" reloadservice "name" reloadsystemctl reload "name.service"設定を再読み込みします。
/etc/init.d/"name" statusservice "name" statussystemctl status "name.service"サービスが実行中かどうかをチェックします。
-service --status-allsystemctl list-units --type service --allすべてのサービスのステータスを表示します。

chkconfig と systemctl の対比表

chkconfigsystemctl詳細
chkconfig "name" onsystemctl enable "name.service"サービスを有効にします。
chkconfig "name" offsystemctl disable "name.service"サービスを無効にします。
chkconfig --list "name"systemctl status "name.service"サービスが有効かどうかをチェックします。
chkconfig --listsystemctl list-unit-files --type serviceサービスすべてを一覧表示し、それらが有効かどうかをチェックします。

トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-01-11 (水) 01:09:16