-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/etc/init.d/logstash: 99: /etc/init.d/logstash: [[: not found #4940
Comments
@abcfy2 interesting, I tried this on a fresh 14.04 install. I couldn't repro it, even running the init script with I do agree that the init script should probably use /usr/bin/env bash instead |
@abcfy2 did you perform an upgrade? I'm wondering if you somehow have an old init script. |
Yes, I do upgrade by using |
will test now the upgrade with a VM and @abcfy2 are you able to reproduce in a fresh installation? |
I tested this out of a fresh installation of
and everything work as expected. @abcfy2 can you provide probably a few more hints? might be test this in a fresh installation (with all updated) |
The
Only timeout reached could get this error. |
I find when I stop the
Maybe better to use |
I got the same issue after updating. Replacing the double brackets with a single one on each side (one opening and one closing) fixes the issue. |
Yes, that's right. Because Ubuntu does not use
But I wonder why logstash/elasticsearch/kibana not use The
But both |
@abcfy2 @ThomasdOtreppe thanks a lot for the help (#4940 (comment)) here, this shows that I'm not definetly a packaging wizard. I was able to reproduce the issue and will work toward a fix for this. Much appreciate. To also answer your questions about |
Maybe prepare 3 scripts for logstash is better. CentOS 7 or later, Ubuntu 16.04 or later, Debian 8 or later use In Ubuntu 14.04(I'm not sure about Ubuntu 12.04), if both |
Fixed in #4992 |
@abcfy2 would you mind opening an issue with this proposal, please include benefits of doing it 👍 thanks a lot for your time and contribution! |
OK. New issue about the service script: #5012 |
When I use
service logstash restart
on Ubuntu 14.04 LTS, will raise this error.Logstash version is
2.2.3
, and installed from official repo.This because Ubuntu does not use
sh
alias forbash
, andsh
does not support built-in[[
term.The text was updated successfully, but these errors were encountered: