サービスの起動・停止 systemctlコマンド

サービスの起動・停止・再起動

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

サービス名の指定

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

定義済みのサービスの一覧

 systemctl list-unit-files --type=service

起動中のサービスの一覧

 systemctl list-unit-files --type=service
  • chkconfig -l

参考

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


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

Last-modified: 2019-07-08 (月) 04:15:03