[Debian sysVinit] Can't start Kibana with /etc/init.d/kibana (exec quotation marks issue) #100112
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Operations
Team label for Operations Team
Kibana version:
7.12.1
Elasticsearch version:
7.12.1
Server OS version:
Debian Buster 10.9
Browser version:
not important
Browser OS version:
not important
Original install method (e.g. download page, yum, from source, etc.):
apt via https://artifacts.elastic.co/packages/7.x/apt stable main
Describe the bug:
While using sysvinit, Kibana can't start via /etc/init.d/kibana because
exec
doesn't accept multiple parameters in a quotation marks.exec \"$program $args\"
The newest package (7.12.1; /etc/init.d/kibana line 66 ) use wrong
sh -c "exec \"$program $args\""
The older package (7.10.1; /etc/init.d/kibana line 69) use working
sh -c "exec \"$program\""
The older package (6.8.13; /etc/init.d/kibana line 55) use working
sh -c "exec \"$program\" $args"
Correct way is to use
sh -c "exec $program $args"
Steps to reproduce:
apt-get install kibana=7.12.1
/etc/init.d/kibana start
tail /var/log/kibana/kibana.log
sed '66s/\\"//g' /etc/init.d/kibana; /etc/init.d/kibana start
Expected behavior:
Kibana will start with sysVinit.
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
Let's play with
exec
:The text was updated successfully, but these errors were encountered: