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

Exporting run's "$srv_dir" to the user's shell? #16

Open
capezotte opened this issue Jul 14, 2024 · 0 comments
Open

Exporting run's "$srv_dir" to the user's shell? #16

capezotte opened this issue Jul 14, 2024 · 0 comments

Comments

@capezotte
Copy link

I'm currently writing an s6 (or s6-rc, not sure yet) backend for Turnstile.

The developer's recommendation is to make copies of the service definitions a RAM filesystem, and start the supervision suite there. The run script's third argument, srv_dir seems a good place for doing that, but, since this is djbware, this means the its path must be made known (or guessed) in order for the user to be able to issue commands to the supervisors.

Exporting its path to the environment, or at least documenting how the path is built, seems like a simplest way to enable using the turnstile's "service manager state" directory in this case.


FWIW, a possible alternative is a "control" service that runs commands on behalf of the user with the correct working directory, which could part of the backend's default service set (I believe I'll need something like this anyway since I plan to give an option to store the service's logs in a separate, rotated folder). s6 comes with the bits needed for creating one, without additional dependencies.

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

No branches or pull requests

1 participant