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

Changed defaults for installation locations #826

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Aug 5, 2021

What:

  • SYSCONFDIR is /etc by default now
  • LOCALSTATEDIR is /var by default now
  • OPENVAS_RUN_DIR is /run/ospd by default now
  • OPENVAS_FEED_LOCK_PATH is /var/lib/openvas/feed-update.lock by default
    now

/run/ospd is used because normally openvas is started from ospd-openvas
which by default uses the /run/ospd path in the systemd service file.
This ensures that the directory for the OPENVAS_RUN_DIR exists at
runtime.

/var/lib/openvas/feed-update.lock is used because the sync scripts may
be started when the services are stopped an /run/ospd (or an other
directory in /run) is not available anymore.

Why:

Use better and sane defaults.

How:

Checklist:

* SYSCONFDIR is /etc by default now
* LOCALSTATEDIR is /var by default now
* OPENVAS_RUN_DIR is /run/ospd by default now
* OPENVAS_FEED_LOOK_PATH is /var/lib/openvas/feed-update.lock by default
  now

/run/ospd is used because normally openvas is started from ospd-openvas
which by default uses the /run/ospd path in the systemd service file.
This ensures that the directory for the OPENVAS_RUN_DIR exists at
runtime.

/var/lib/openvas/feed-update.lock is used because the sync scripts may
be started when the services are stopped an /run/ospd (or an other
directory in /run) is not available anymore.
@bjoernricks bjoernricks merged commit c85cff0 into openvas-20.08 Aug 5, 2021
@bjoernricks bjoernricks deleted the bricks/adjust-default-paths branch August 5, 2021 06:20
bjoernricks added a commit that referenced this pull request Aug 5, 2021
Changed defaults for installation locations (backport #826)
bjoernricks added a commit that referenced this pull request Aug 5, 2021
Changed defaults for installation locations (backport #826)
@cfi-gb cfi-gb mentioned this pull request Aug 31, 2021
y0urself added a commit that referenced this pull request Sep 2, 2021
Changed defaults for installation locations (backport #826)
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