Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
073ba34b
Commit
073ba34b
authored
11 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/rpm-fix'
parents
65b991b6
a45202df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extra/tarantool_deploy.sh
+7
-7
7 additions, 7 deletions
extra/tarantool_deploy.sh
extra/tarantool_multi.sh
+1
-1
1 addition, 1 deletion
extra/tarantool_multi.sh
with
8 additions
and
8 deletions
extra/tarantool_deploy.sh
+
7
−
7
View file @
073ba34b
...
...
@@ -49,7 +49,7 @@ usage() {
echo
"Tarantool deployment script: add more Tarantool instances."
echo
"usage: tarantool_deploy.sh [options] <instance>"
echo
echo
" --prefix <path> installation path (/usr
/local
)"
echo
" --prefix <path> installation path (/usr)"
echo
" --prefix_etc <path> installation etc path (/etc)"
echo
" --prefix_var <path> installation var path (/var)"
echo
...
...
@@ -66,7 +66,7 @@ usage() {
rollback_instance
()
{
id
=
$1
workdir
=
"
${
prefix_var
}
/tarantool_box
$id
"
config
=
"
${
prefix
}
/etc
/tarantool_box
$id
.cfg"
config
=
"
${
prefix
_etc
}
/tarantool
/tarantool_box
$id
.cfg"
rm
-rf
$workdir
rm
-f
$config
rm
-f
"
${
prefix
}
/bin/tarantool_box
$id
.sh"
...
...
@@ -93,7 +93,7 @@ try() {
deploy
()
{
id
=
$1
workdir
=
"
${
prefix_var
}
/tarantool_box
$id
"
config
=
"
${
prefix
}
/etc
/tarantool_box
$id
.cfg"
config
=
"
${
prefix
_etc
}
/tarantool
/tarantool_box
$id
.cfg"
log
">>> deploy instance
$id
"
...
...
@@ -105,7 +105,7 @@ deploy() {
try
"chown tarantool:tarantool -R
$workdir
"
# setup configuration file
try
"cp
\"
${
prefix
}
/etc
/tarantool.cfg
\"
$config
"
try
"cp
\"
${
prefix
_etc
}
/tarantool
/tarantool.cfg
\"
$config
"
try
'echo work_dir = \"$workdir\" >> $config'
try
'echo username = \"tarantool\" >> $config'
try
'echo logger = \"cat - \>\> logs/tarantool.log\" >> $config'
...
...
@@ -130,7 +130,7 @@ deploy_check() {
# check, if there are any instance-related files exists that could be
# accidently removed or overwritten by setup.
instance_workdir
=
"
${
prefix_var
}
/tarantool_box
$id
"
instance_config
=
"
${
prefix
}
/etc
/tarantool_box
$id
.cfg"
instance_config
=
"
${
prefix
_etc
}
/tarantool
/tarantool_box
$id
.cfg"
instance_wrapper
=
"
${
prefix
}
/bin/tarantool_box
$id
.sh"
instance_startup
=
"
${
prefix_etc
}
/init.d/tarantool_box
$id
"
[
-d
$instance_workdir
]
&&
error
"Instance workdir exists: '
$instance_workdir
'"
...
...
@@ -163,11 +163,11 @@ while [ $# -ge 1 ]; do
esac
done
set
${
prefix
:
=
"/usr
/local
"
}
set
${
prefix
:
=
"/usr"
}
set
${
prefix_var
:
=
"/var"
}
set
${
prefix_etc
:
=
"/etc"
}
deploy_cfg
=
"
${
prefix
}
/etc
/tarantool_deploy.cfg"
deploy_cfg
=
"
${
prefix
_etc
}
/tarantool
/tarantool_deploy.cfg"
deploy_exists
=
0
# check deployment configuration file
...
...
This diff is collapsed.
Click to expand it.
extra/tarantool_multi.sh
+
1
−
1
View file @
073ba34b
...
...
@@ -8,7 +8,7 @@ export PATH=$PATH:/usr/bin
NAME
=
"tarantool_box"
BINARY
=
"/usr/bin/
${
NAME
}
"
INST
=
$(
basename
$0
.sh
)
CONF
=
"/
usr/local/etc
/
${
INST
}
.cfg"
CONF
=
"/
etc/tarantool
/
${
INST
}
.cfg"
LOGDIR
=
"/var/
${
INST
}
/logs"
WRAP_PIDFILE
=
"/var/
${
INST
}
/wrapper.pid"
# set to get restart emails
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment