2017-10-20 2 views
1

pg_ctlcluster ver cluster stopを使用して特定のクラスタのサービスを停止することはできますが、マシンをリブートすると再びすぐにバックアップが開始されます。私はpostgresql.confファイルのデータディレクトリを変更するようなことができますが、それは私の匂いになります。 pg_ctlclusterを持って与えられたpostgresqlデータベースクラスタを無効にする簡単な方法は何ですか?

+0

'sudo find/etc/postgresql -name start.conf'を試してください? –

+0

あなたがubuntuを使っているなら' sudo update-rc.d postgresql disable'を試してみてください –

答えて

0

PostgreSQLのインストール(Debianベース)これらのコンテンツを持つ/etc/postgresql/<version>/<clustername>start.confファイルを探します。

 
# Automatic startup configuration 
# auto: automatically start/stop the cluster in the init script 
# manual: do not start/stop in init scripts, but allow manual startup with 
#   pg_ctlcluster 
# disabled: do not allow manual startup with pg_ctlcluster (this can be easily 
#   circumvented and is only meant to be a small protection for 
#   accidents). 

auto 

ごとのクラスタ、ブート時に自動起動を避けるために、代わりにマニュアルを入れてください。

関連する問題