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

Add command line options db-host and db-port #1308

Merged
merged 5 commits into from
Oct 5, 2020

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Oct 1, 2020

What:
This adds the command line options --db-host and --db_port, which allow setting the host and port parameters for
connecting to the database.
This is currently only fully usable for local setups using UNIX domain sockets as authentication options for TCP/IP connections are still missing.

Why:
Changing the database host and/or port allows running gvmd with a non-default PostgreSQL server, for example for quickly testing different versions.

How:

  • Run gvmd without any options for the default options
  • Run gvmd with valid database connection options like --database gvmd --db-host "/var/run/postgresql/" --db-port 5432 for the default socket
  • Run gvmd, each time replacing one of the option values above with an invalid one and check the gvmd log for error messages mentioning the invalid database name or socket paths.

Checklist:

These options allow setting the `host` and `port` parameters for
connecting to the database.
This adds the new db-host and db-port options to the man page source
file and fixes the order in the `gvmd` function.
@mattmundell mattmundell merged commit 69296e8 into greenbone:gvmd-20.08 Oct 5, 2020
@timopollmeier timopollmeier deleted the db-host-options branch October 15, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants