8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00
firebird-mirror/builds/install/misc/changeMultiConnectMode.sh.in
alexpeshkoff 2b382f606b 1. Deeper integration between super and classic setup.
2. Script to switch between classic and superclassic modes.
3. Changed lisences from LGPL to IDPL (with Mark's agreement)
2008-05-07 16:34:47 +00:00

66 lines
1.8 KiB
Bash

#!/bin/sh
#
# The contents of this file are subject to the Initial
# Developer's Public License Version 1.0 (the "License");
# you may not use this file except in compliance with the
# License. You may obtain a copy of the License at
# http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
#
# Software distributed under the License is distributed AS IS,
# WITHOUT WARRANTY OF ANY KIND, either express or implied.
# See the License for the specific language governing rights
# and limitations under the License.
#
# The Original Code was created by Alex Peshkoff
# for the Firebird Open Source RDBMS project.
#
# Copyright (c) 2008 Alex Peshkoff <peshkoff@mail.ru>
# and all contributors signed below.
#
# All Rights Reserved.
# Contributor(s): ______________________________________.
#
#= Main ====================================================================
FBRootDir=/opt/firebird.CS.2.5
FBBin=$FBRootDir/bin
cat <<EOF
For classic server there are two ways to support multiple connections:
multyprocess (traditional for FB classic server) and multythread (new for FB 2.5).
Multyprocess mode is specially reliable cause error in one process does not affect others.
Multythread minimizes OS load and should provide better scalability under high loads.
EOF
AskQuestion "Which option would you like to choose: multy-(process|thread) [process] " "process"
multyAnswer=$Answer
case $multyAnswer in
process)
;;
thread)
;;
*)
echo "Unknown option $multyAnswer chosen"
;;
esac
echo "Stopping currently running engine..."
checkIfServerRunning
removeInetdServiceEntry
removeServiceAutostart
echo "Starting firebird in multy$multyAnswer mode..."
if [ $multyAnswer == process ]; then
updateInetdServiceEntry
resetInetdServer
else
installInitdScript super
startService super
fi
echo "Done."