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

Feature request: support fdstore functionality #442

Open
happy-dude opened this issue May 6, 2024 · 0 comments
Open

Feature request: support fdstore functionality #442

happy-dude opened this issue May 6, 2024 · 0 comments

Comments

@happy-dude
Copy link

happy-dude commented May 6, 2024

Hey team,

I was wondering if it was possible to add support for the fdstore interface with this library?

From the documentation,

TL;DR: The systemd service manager may optionally maintain a set of file descriptors for each service. Those file descriptors are under control of the service. Storing file descriptors in the manager makes is easier to restart services without dropping connections or losing state.

Currently, go-systemd has the ability to retrieve file descriptors stored in this manner via Files() (https://pkg.go.dev/github.com/coreos/go-systemd/v22/activation#Files), but does not have the ability to set/upload the descriptors (via sd_pid_notify_with_fds?)

If this is desirable functionality, I can look into submitting a patch/PR with some guidance and prior art to reference!

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