Doc: Add note about if_up_cmd and if_down_cmd command.
authorBo Peng <pengbo@sraoss.co.jp>
Sun, 10 May 2020 00:27:48 +0000 (09:27 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Sun, 10 May 2020 00:30:57 +0000 (09:30 +0900)
doc.ja/src/sgml/example-cluster.sgml
doc/src/sgml/example-cluster.sgml

index e92da1e3a3a1ec22526cadc830507d241c9d30b2..33333ece4a97df45539d76f8e7179b4e74bbb884 100644 (file)
@@ -1000,6 +1000,12 @@ if_up_cmd = '/usr/bin/sudo /sbin/ip addr add $_IP_$/24 dev enp0s8 label enp0s8:0
 if_down_cmd = '/usr/bin/sudo /sbin/ip addr del $_IP_$/24 dev enp0s8'
 arping_cmd = '/usr/bin/sudo /usr/sbin/arping -U $_IP_$ -w 1 -I enp0s8'
    </programlisting>
+   <note>
+    <para>
+     <filename>/etc/sudoers</filename>で「Defaults requiretty」を設定している場合は、<productname>pgpool</productname>の起動ユーザが<literal>tty</literal>なしで<command>if_up_cmd</command>、
+     <command>if_down_cmd</command>及び<command>arping_cmd</command>コマンドを実行できるように設定する必要があります。 
+    </para>
+   </note>
 
    <para>
        ipコマンドやarpingコマンドのパスがデフォルトのパスと異なる場合、環境に合わせて<xref linkend="GUC-IF-CMD-PATH">や<xref linkend="GUC-ARPING-PATH">を設定しておいてください。
index 5e272f5db68b292cf3910b5a6eaaf45b2aafd1f7..b70899e7382f5f4bc25837674b2b319788278d1b 100644 (file)
@@ -1052,6 +1052,12 @@ if_up_cmd = '/usr/bin/sudo /sbin/ip addr add $_IP_$/24 dev enp0s8 label enp0s8:0
 if_down_cmd = '/usr/bin/sudo /sbin/ip addr del $_IP_$/24 dev enp0s8'
 arping_cmd = '/usr/bin/sudo /usr/sbin/arping -U $_IP_$ -w 1 -I enp0s8'
    </programlisting>
+   <note>
+    <para>
+     If "Defaults requiretty" is set in the <filename>/etc/sudoers</filename>,
+     please ensure that the <productname>pgpool</productname> startup user can execute the <command>if_up_cmd</command>, <command>if_down_cmd</command> and <command>arping_cmd</command> command without a tty.
+    </para>
+   </note>
    <para>
     Set <xref linkend="GUC-IF-CMD-PATH"> and <xref linkend="GUC-ARPING-PATH"> according to the
     command path.