Skip to content

Commit 556d10f

Browse files
authored
Merge pull request #280 from ail-project/kvrocks-deb
new: Add support for kvrocks installed from the deb package
2 parents e29c365 + af97b08 commit 556d10f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/LAUNCH.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ function launching_kvrocks {
114114
echo -e $GREEN"\t* Launching KVROCKS servers"$DEFAULT
115115

116116
sleep 0.1
117-
screen -S "KVROCKS_AIL" -X screen -t "6383" bash -c 'cd '${AIL_HOME}'; ./kvrocks/build/kvrocks -c '$conf_dir'/6383.conf ; read x'
117+
if [ -f "./kvrocks/build/kvrocks" ]; then
118+
screen -S "KVROCKS_AIL" -X screen -t "6383" bash -c 'cd '${AIL_HOME}'; ./kvrocks/build/kvrocks -c '$conf_dir'/6383.conf ; read x'
119+
elif [ -f "/usr/bin/kvrocks" ]; then
120+
screen -S "KVROCKS_AIL" -X screen -t "6383" bash -c 'cd '${AIL_HOME}'; kvrocks -c '$conf_dir'/6383.conf ; read x'
121+
else
122+
echo -e $RED"\t* KVROCKS is not installed."$DEFAULT
123+
fi
118124
}
119125

120126
function launching_logs {

0 commit comments

Comments
 (0)