pgpool2.git / summary / log / commit / refs
commit 21703cdf31bb90fff323f70aa408ad2aa3a0cff9
Author: Yugo Nagata <nagata@sraoss.co.jp>
Date: Thu Dec 25 06:40:29 2014 +0000
Replace ifconfig command to ip command of if_up/dowm_cmd in pgpool.conf.sample
src/sample/pgpool.conf.sample | 9 ++++-----
src/sample/pgpool.conf.sample-master-slave | 9 ++++-----
src/sample/pgpool.conf.sample-replication | 9 ++++-----
src/sample/pgpool.conf.sample-stream | 9 ++++-----
4 files changed, 16 insertions(+), 20 deletions(-)
diff --git a/src/sample/pgpool.conf.sample b/src/sample/pgpool.conf.sample
index a948544ae..4917b50ee 100644
--- a/src/sample/pgpool.conf.sample
+++ b/src/sample/pgpool.conf.sample
@@ -491,16 +491,15 @@ delegate_IP = ''
ifconfig_path = '/sbin'
# ifconfig command path
# (change requires restart)
-if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+if_up_cmd = 'ip addr add $_IP_$/24 dev eth0 label eth0:0'
# startup delegate IP command
# (change requires restart)
-if_down_cmd = 'ifconfig eth0:0 down'
+if_down_cmd = 'ip addr del $_IP_$/24 dev eth0'
# shutdown delegate IP command
# (change requires restart)
-
-arping_path = '/usr/sbin' # arping command path
+arping_path = '/usr/sbin'
+ # arping command path
# (change requires restart)
-
arping_cmd = 'arping -U $_IP_$ -w 1'
# arping command
# (change requires restart)
diff --git a/src/sample/pgpool.conf.sample-master-slave b/src/sample/pgpool.conf.sample-master-slave
index 9be478763..92ed2befe 100644
--- a/src/sample/pgpool.conf.sample-master-slave
+++ b/src/sample/pgpool.conf.sample-master-slave
@@ -491,16 +491,15 @@ delegate_IP = ''
ifconfig_path = '/sbin'
# ifconfig command path
# (change requires restart)
-if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+if_up_cmd = 'ip addr add $_IP_$/24 dev eth0 label eth0:0'
# startup delegate IP command
# (change requires restart)
-if_down_cmd = 'ifconfig eth0:0 down'
+if_down_cmd = 'ip addr del $_IP_$/24 dev eth0'
# shutdown delegate IP command
# (change requires restart)
-
-arping_path = '/usr/sbin' # arping command path
+arping_path = '/usr/sbin'
+ # arping command path
# (change requires restart)
-
arping_cmd = 'arping -U $_IP_$ -w 1'
# arping command
# (change requires restart)
diff --git a/src/sample/pgpool.conf.sample-replication b/src/sample/pgpool.conf.sample-replication
index b6f3aca2e..ea206ca78 100644
--- a/src/sample/pgpool.conf.sample-replication
+++ b/src/sample/pgpool.conf.sample-replication
@@ -490,16 +490,15 @@ delegate_IP = ''
ifconfig_path = '/sbin'
# ifconfig command path
# (change requires restart)
-if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+if_up_cmd = 'ip addr add $_IP_$/24 dev eth0 label eth0:0'
# startup delegate IP command
# (change requires restart)
-if_down_cmd = 'ifconfig eth0:0 down'
+if_down_cmd = 'ip addr del $_IP_$/24 dev eth0'
# shutdown delegate IP command
# (change requires restart)
-
-arping_path = '/usr/sbin' # arping command path
+arping_path = '/usr/sbin'
+ # arping command path
# (change requires restart)
-
arping_cmd = 'arping -U $_IP_$ -w 1'
# arping command
# (change requires restart)
diff --git a/src/sample/pgpool.conf.sample-stream b/src/sample/pgpool.conf.sample-stream
index 742e2f8f6..e2126c5a2 100644
--- a/src/sample/pgpool.conf.sample-stream
+++ b/src/sample/pgpool.conf.sample-stream
@@ -491,16 +491,15 @@ delegate_IP = ''
ifconfig_path = '/sbin'
# ifconfig command path
# (change requires restart)
-if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
+if_up_cmd = 'ip addr add $_IP_$/24 dev eth0 label eth0:0'
# startup delegate IP command
# (change requires restart)
-if_down_cmd = 'ifconfig eth0:0 down'
+if_down_cmd = 'ip addr del $_IP_$/24 dev eth0'
# shutdown delegate IP command
# (change requires restart)
-
-arping_path = '/usr/sbin' # arping command path
+arping_path = '/usr/sbin'
+ # arping command path
# (change requires restart)
-
arping_cmd = 'arping -U $_IP_$ -w 1'
# arping command
# (change requires restart)
[parent: 30168327732c]