Skip to content
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

Conflicting PID file locations in config comments #2433

Closed
2 tasks done
der-eismann opened this issue Jul 17, 2024 · 1 comment · Fixed by #2505
Closed
2 tasks done

Conflicting PID file locations in config comments #2433

der-eismann opened this issue Jul 17, 2024 · 1 comment · Fixed by #2505
Labels
bug type bug

Comments

@der-eismann
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.9.0

Minimal reproduce step

What did you expect to see?

Correct and precise comments

What did you see instead?

First in the config it says

# By default, kvrocks does not run as a daemon. Use 'yes' if you need it.
# Note that kvrocks will write a PID file in /var/run/kvrocks.pid when daemonized
daemonize no

and then

# When running in daemonize mode, kvrocks writes a PID file in ${CONFIG_DIR}/kvrocks.pid by
# default. You can specify a custom pid file location here.
# pidfile /var/run/kvrocks.pid

And /var/run is definitely not a ${CONFIG_DIR}. One of these two seems to be off.

Anything Else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@der-eismann der-eismann added the bug type bug label Jul 17, 2024
@git-hulk
Copy link
Member

Hi @der-eismann

Thanks for your report. The default pidfile should be located in {dir}/kvrocks.pid instead of {CONFIG_DIR} or /var/run dir. For the implementation, please refer to https://github.com/apache/kvrocks/blob/unstable/src/config/config.cc#L415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug type bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants