Subversion Repositories ALCASAR

Rev

Rev 3313 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3313 Rev 3318
Line 90... Line 90...
90
		echo "error: need to pass remote name"
90
		echo "error: need to pass remote name"
91
		return 1
91
		return 1
92
	fi
92
	fi
93
 
93
 
94
	name="$1"
94
	name="$1"
95
	service_file="/etc/systemd/system/replication-$name.service"
95
	attributes="$(/usr/local/bin/alcasar-replication-list.sh --name=$name)"
96
	if [ -f "$service_file" ]
96
	if echo "$attributes" | grep -q "Master_Host";
97
	then
97
	then
98
	echo "Starting replication with '$name'"
98
		echo "Starting replication with '$name'"
99
	exec_query "START REPLICA '$name'" || return
99
		exec_query "START REPLICA '$name'" || return
100
	else
100
	else
101
		echo "Remote $name doesn't exists !"
101
		echo "Remote $name doesn't exists !"
102
	fi
102
	fi
103
}
103
}
104
 
104