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

[CMake] Do not install run(-time) dir(ectory) #54

Merged
merged 1 commit into from
May 5, 2022

Conversation

Flowdalic
Copy link
Contributor

Installing the empty GSAD_RUN_DIR serves no purpose. The run(-time)
directories of services should be dynamically created and not
statically installed. And gsad's systemd service file ensures that the
PIDFile is created, which is the only content of gsad's run
directory. And even if there would be further content, then systemd's
RuntimeDirectory directive should be used instead (as it is already
done for gvmd).

The bottom line is: in no case should run-time directories be
installed, they are to be created at run-time.

Installing the empty GSAD_RUN_DIR serves no purpose. The run(-time)
directories of services should be dynamically created and not
statically installed. And gsad's systemd service file ensures that the
PIDFile is created, which is the only content of gsad's run
directory. And even if there would be further content, then systemd's
RuntimeDirectory directive should be used instead (as it is already
done for gvmd).

The bottom line is: in no case should run-time directories be
installed, they are to be created at *run-time*.
@Flowdalic Flowdalic requested a review from a team as a code owner May 4, 2022 15:28
@bjoernricks bjoernricks merged commit ab6aa4c into greenbone:main May 5, 2022
@Flowdalic Flowdalic deleted the do-not-install-run-dir branch September 27, 2023 10:55
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