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

systemd socket activation #34

Closed
logic opened this issue Jan 22, 2018 · 1 comment
Closed

systemd socket activation #34

logic opened this issue Jan 22, 2018 · 1 comment

Comments

@logic
Copy link

logic commented Jan 22, 2018

systemd provides socket activation as an option for listening services, and is particularly handy for services that listen on privileged ports. It would be useful to be able to operate a very infrequently-accessed service like this via on-demand activation.

It looks like miekg/dns already supports socket activation via ActivateAndServe (analogous to ListenAndServe), and coreos/go-systemd provides a handy activation abstraction.

(And because you can configure multiple listeners, it would be easy to also grab the listener for HTTP from systemd as well.)

@joohoi
Copy link
Owner

joohoi commented Jan 25, 2018

This looks interesting, however I'd be a bit careful to implement (at least as a default) things that are very dependent on the users systemd configuration. It's different, of course, when and if this would be packaged for certain distributions, allowing automatic setup of such systemd features.

This is the first time I read of such feature. Could you elaborate the impact and usefulness? I think I'm missing something, but if the service(s) would be activated upon incoming connection, all I can see is a slight overhead in the initial connection. Acme-dns doesn't reserve too much of resources currently, so I don't see an immediate need for this. But as said, I'm new to the feature so please correct me as I obviously have something wrong here.

@joohoi joohoi closed this as completed Aug 12, 2018
gbonnefille pushed a commit to gbonnefille/acme-dns that referenced this issue Apr 29, 2022
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](BurntSushi/toml@v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants