#author("2019-07-08T03:52:19+09:00","default:ryuichi","ryuichi")
* systemctlコマンド [#l93f5961]
#author("2019-07-08T04:15:03+09:00","default:ryuichi","ryuichi")
* サービスの起動・停止 systemctlコマンド [#l93f5961]

** サービスの起動・停止・再起動 [#rd9d016d]

 systemctl start postgresql
 systemctl stop postgresql
 systemctl restart postgresql
 systemctl reload postgresql


*** サービス名の指定 [#r092c2ce]

 systemctl start postgresql.service

- サービス名(ここでは'''postgresql''')は略称になっており、'''Unit名.service'''の形式で指定できる(ここでは'''postgresql.service''')


** 定義済みのサービスの一覧 [#j953bf91]

 systemctl list-unit-files --type=service

** 起動中のサービスの一覧 [#zd39ffa2]

 systemctl list-unit-files --type=service

- '''chkconfig -l'''

** 参考 [#n25ea284]

https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units

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