Skip to content

Conversation

ekohl
Copy link
Contributor

@ekohl ekohl commented Jul 30, 2025

Systemd will export the environment variable RUNTIME_DIRECTORY when running a deamon. This avoids the need for shipping a tmpfiles.d entry to create the run directory.

Link: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#RuntimeDirectory=

This relates to OpenVoxProject/planning#69. I don't quite know this will interact because I don't know if this method will also be read by the clojure code.

@bastelfreak
Copy link
Contributor

@ekohl the clojure code also runs as systemd service, the environment variable should be available in the process as well?

@bastelfreak
Copy link
Contributor

On the other hand, even if it's not set, the fallback is used. So IMO this is fine to be merged. Could you rebase it? Tests should pass now, I fixed the pipeline today with @sebastianrakel .

Systemd will export the environment variable RUNTIME_DIRECTORY when
running a deamon. This avoids the need for shipping a tmpfiles.d entry
to create the run directory.

Link: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#RuntimeDirectory=
@ekohl ekohl force-pushed the respect-systemd-RUNTIME_DIRECTORY branch from a395599 to 9634113 Compare August 24, 2025 18:06
@bastelfreak bastelfreak merged commit 2aee693 into OpenVoxProject:main Aug 24, 2025
12 checks passed
@ekohl ekohl deleted the respect-systemd-RUNTIME_DIRECTORY branch August 24, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants