-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
questdb.sh stop and status options fail to find pid on FreeBSD using ps -ef #1264
Comments
By the way, I should say that the "potential diff" I've provided is probably not a great solution. Given that "Darwin" is a BSD, the two cases should probably be merged. |
Thanks for the issue and fix suggestion @hraftery, |
Okay, willing to give it a go, but note it's difficult for me to test well across OS's. PR submitted. Tested in my personal Darwin environment as a mitigation against silly regressions, but not much beyond that. |
Describe the bug
Running
questdb.sh status -d path/to/root/dir
orquestdb.sh stop -d path/to/root/dir
returns "Not running", even when QuestDB has been started withquestdb.sh start -d path/to/root/dir
and is running, as evidenced by a listing in the process table and a functional web console.Closer inspection reveals that both commands call "export_pid" which uses
ps -ef
to find the process. On FreeBSD this command returns truncated output that does not necessarily contain the process label. The equivalent on FreeBSD to the Linuxps -ef
isps auwwx
. Modifying "export_pid" to use that command instead results in expected behaviour (see Additional context below).To Reproduce
pkg install bash
since it is (unexpectedly) required byquestdb.sh
questdb-6.0.4-rt-freebsd-amd64/bin/questdb.sh start
questdb-6.0.4-rt-freebsd-amd64/bin/questdb.sh status
questdb-6.0.4-rt-freebsd-amd64/bin/questdb.sh stop
Expected behavior
What happens when I fix the export_pid function. That is
status
reports the PID, andstop
ends the process.Screenshots
N/A
Environment (please complete the following information):
Additional context
A potential diff that fixes this issue is:
The text was updated successfully, but these errors were encountered: