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
9f8d8a03
Commit
9f8d8a03
authored
10 years ago
by
Dmitry E. Oboukhov
Browse files
Options
Downloads
Patches
Plain Diff
Init sccript for dist.lua.
parent
539b46d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/tarantool-common.tarantool.init
+6
-6
6 additions, 6 deletions
debian/tarantool-common.tarantool.init
with
6 additions
and
6 deletions
debian/tarantool-common.tarantool.init
+
6
−
6
View file @
9f8d8a03
...
@@ -17,8 +17,8 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
...
@@ -17,8 +17,8 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
CONF_DIR
=
/etc/tarantool/instances.enabled
CONF_DIR
=
/etc/tarantool/instances.enabled
SCRIPTNAME
=
/etc/init.d/tarantool
SCRIPTNAME
=
/etc/init.d/tarantool
DAEMON
=
/usr/bin/tarantool
DAEMON
=
/usr/bin/tarantool
INSTANCES
=
`
find
$CONF_DIR
-xtype
f
-name
'*
.cfg
'
`
INSTANCES
=
`
find
$CONF_DIR
-xtype
f
-name
'*
lua
'
`
INSTSCRIPT
=
/usr/
sbin
/tarantool
_instance
DIST_LUA
=
/usr/
lib
/tarantool
/dist.lua
# Exit if the package is not installed
# Exit if the package is not installed
[
-x
"
$DAEMON
"
]
||
exit
0
[
-x
"
$DAEMON
"
]
||
exit
0
...
@@ -26,7 +26,7 @@ INSTSCRIPT=/usr/sbin/tarantool_instance
...
@@ -26,7 +26,7 @@ INSTSCRIPT=/usr/sbin/tarantool_instance
.
/lib/init/vars.sh
.
/lib/init/vars.sh
if
test
-z
"
$INSTANCES
"
;
then
if
test
-z
"
$INSTANCES
"
;
then
echo
"tarantool: There are no instances in
$CONF_DIR
"
echo
"tarantool: There are no instances
(*.lua)
in
$CONF_DIR
"
exit
0
exit
0
fi
fi
...
@@ -35,9 +35,9 @@ fi
...
@@ -35,9 +35,9 @@ fi
# Function that starts the daemon/service
# Function that starts the daemon/service
#
#
do_start
()
{
do_start
()
{
echo
"tarantool: Staring instances"
echo
"tarantool: Star
t
ing instances"
for
inst
in
$INSTANCES
;
do
for
inst
in
$INSTANCES
;
do
$
INSTSCRIPT
$inst
start
$
DAEMON
$DIST_LUA
start
`
basename
$inst
.lua
`
done
done
return
0
return
0
}
}
...
@@ -48,7 +48,7 @@ do_start() {
...
@@ -48,7 +48,7 @@ do_start() {
do_stop
()
{
do_stop
()
{
echo
"tarantool: Stopping instances"
echo
"tarantool: Stopping instances"
for
inst
in
$INSTANCES
;
do
for
inst
in
$INSTANCES
;
do
$
INSTSCRIPT
$inst
stop
$
DAEMON
$DIST_LUA
stop
`
basename
$inst
.lua
`
done
done
return
0
return
0
}
}
...
...
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