Subversion Repositories ALCASAR

Rev

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

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