blob: 3a769bf693900792415edb112adcb25f64278270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
if [ "$1" = "--force" ]; then
params="--new-cluster-force"
elif [ "$1" = "-h" -o "$1" = "--help" ]; then
echo "Usage: $0 [--force]"
echo
echo " W/o params: starts Manticore Search node in a replication cluster, making sure the node was stopped last of all the nodes"
echo " --force: forces starting Manticore Search node as the first node in a cluster"
echo
exit
else
params="--new-cluster"
fi
systemctl set-environment _ADDITIONAL_SEARCHD_PARAMS="$params" && systemctl start manticore
extcode=$?
systemctl set-environment _ADDITIONAL_SEARCHD_PARAMS=""
exit $extcode
|