From: Olga Arkhangelskaia <arkholga@tarantool.org>
To: tarantool-patches@dev.tarantool.org
Cc: alexander.turenko@tarantool.org
Subject: [Tarantool-patches] [PATCH v2] build: don't start example instance in postinstall
Date: Tue, 9 Jun 2020 14:40:36 +0300 [thread overview]
Message-ID: <20200609114036.89486-1-arkholga@tarantool.org> (raw)
After tarantool installation on Debian/Ubuntu from repo, example instance
was automatically started on 3301 port. At the same time example instance
on RHEL/CentOS is started manually. Patch does the same for Debian/Ubuntu.
If tarantool is installed not for the first time,
do "apt-get purge tarantool-common" before installation to get rid of link in
/etc/tarantool/instances.enabled.
Closes #4507
---
Brabch: gh-4507-disable-start-example-instance-full-ci
@ChangeLog:
- disabled start of example instance after installing from Debian/Ubuntu
repo.
If there is no installed version of tarantool-common, one should do
"apt-get install tarantool-common".
If tarantool-common was installed before, and even removed,
installation or upgrade won't take effect, because the link to example
instance still present in /etc/tarantool/instances.enabled.
Do following steps to get rid from example instance starting every time:
"apt-get purge tarantool-common"
"apt-get install tarantool-common"
debian/tarantool-common.postinst | 8 --------
| 1 +
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/debian/tarantool-common.postinst b/debian/tarantool-common.postinst
index e2eda3415..03e4b2215 100644
--- a/debian/tarantool-common.postinst
+++ b/debian/tarantool-common.postinst
@@ -22,14 +22,6 @@ case "$1" in
install -d -o$SYSUSER -gadm -m2750 /var/log/tarantool
install -d -o$SYSUSER -g$SYSUSER -m750 /var/run/tarantool
install -d -o$SYSUSER -g$SYSUSER -m750 /var/lib/tarantool
-
- # Enable example.lua by default
- if [ -z $2 ] && [ ! -e /etc/tarantool/instances.enabled/example.lua ] &&
- [ -d /etc/tarantool/instances.enabled ] &&
- [ -d /etc/tarantool/instances.available/ ]; then
- ln -s /etc/tarantool/instances.available/example.lua \
- /etc/tarantool/instances.enabled/example.lua
- fi
;;
esac
--git a/extra/dist/tarantool-generator.in b/extra/dist/tarantool-generator.in
index f6a6a2540..2048b7517 100755
--- a/extra/dist/tarantool-generator.in
+++ b/extra/dist/tarantool-generator.in
@@ -13,6 +13,7 @@ mkdir -p "$wantdir"
for file in @TARANTOOL_ENABLEDDIR@/*.lua; do
instance=`basename $file .lua`
+ [ "${instance}" = "*" ] && break # skip empty directory
ln -s "$service" "$wantdir/tarantool@$instance.service"
done
--
2.20.1 (Apple Git-117)
next reply other threads:[~2020-06-09 11:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-09 11:40 Olga Arkhangelskaia [this message]
2020-06-10 12:39 ` Alexander Turenko
2020-11-09 4:20 ` Alexander Turenko
2020-06-10 12:39 ` Igor Munkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200609114036.89486-1-arkholga@tarantool.org \
--to=arkholga@tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v2] build: don'\''t start example instance in postinstall' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox