Skip to content

Support systemd socket activation #329

Closed

Description

Main Project Pages
http://www.freedesktop.org/wiki/Software/systemd/
http://0pointer.de/blog/projects/systemd-docs.html

How-to on patching a service to use socket activation.
http://0pointer.de/blog/projects/socket-activation.html

Man Pages for sd-daemon and sd_listen_fds();
http://0pointer.de/public/systemd-man/sd-daemon.html
http://0pointer.de/public/systemd-man/sd_listen_fds.html

Using the above information, I was able to patch the 2.4 branch
and it seems to work as advertised :)
https://gist.github.com/1741478

I linked systemd-daemon, but as the docs above state, the two files
(sd-daemon.c and sd-daemon.h) could be added to /deps.

You would know the git front-end at freedesktop.org seems to be down atm :/
If you'd like to quickly view these two files, I've pulled the most recent
copies from their repo here: https://gist.github.com/1741350

Activity

  1. pietern commented on Feb 6, 2012

    @pietern
    Contributor

    What does this patch do, and why should it be included in Redis?

  2. alesya-h commented on Jul 9, 2012

    @alesya-h

    Any updates so far? I need this feature. Will it be merged upstream? Also seems like there is no redis.service file present at time( you may check this one https://bbs.archlinux.org/viewtopic.php?id=135922 )

  3. Keruspe commented on Dec 10, 2012

    @Keruspe
    Contributor

    Providing a systemd service, and better, also supporting socket activation would be appreciated a lot !

  4. ovax3 commented on May 5, 2013

    @ovax3

    Would be much appreciated, particularly for dev environments.

  5. antirez commented on May 8, 2013

    @antirez
    Contributor

    Hello, for now there is no plan to add this feature. Thanks for your contrib anyway. Closing.

  6. ku1ik commented on Jul 10, 2013

    @ku1ik

    :(

  7. bjne commented on Sep 3, 2013

    @bjne

    antirez: Why is there no plan to add this? Sounds silly!

  8. flyingmutant commented on Sep 21, 2013

    @flyingmutant
    Contributor

    @antirez, can you please explain the reasoning behind closing this issue? Would you accept a socket activation patch that does not add build dependency on systemd?

    systemd provides many desirable features for system administration, and it would be greatly appreciated if redis will be able to benefit from socket activation in particular.

  9. polvi commented on Sep 29, 2013

    @polvi

    Major distributions, such as Redhat, Fedora, SUSE, Arch, and CoreOS, all support systemd. Socket activation is a critical component large distributed systems. Please consider adding it native to redis.

  10. davidstrauss commented on Nov 29, 2013

    @davidstrauss

    We're watching this, too. We use systemd and Redis on Pantheon.

  11. mitsuhiko commented on Dec 19, 2013

    @mitsuhiko

    Why did this get closed? This is a very useful feature, not just because of systemd but also for things like circus.

  12. davidstrauss commented on Feb 24, 2014

    @davidstrauss

    Debian and Ubuntu are also now moving to systemd.

  13. phndiaye commented on May 21, 2014

    @phndiaye

    Any news about the support of this feature?

  14. james-lawrence commented on Jul 10, 2014

    @james-lawrence

    Also interested in this feature. And interested in why it was closed without explaination.

  15. tahajahangir commented on Sep 13, 2014

    @tahajahangir

    RHEL/CentOS 7 came with systemd, and Debian 8 uses systemd, Why not support socket activation?

  16. jbergstroem commented on Sep 13, 2014

    @jbergstroem
    Contributor

    How about moving the discussion to having your linux distribution running systemd of choice carry this patch instead? Guessing ubuntu, redhat or debian package maintainers would consider it.

  17. flyingmutant commented on Sep 13, 2014

    @flyingmutant
    Contributor

    Or one can say that a tiny patch with no external dependencies which benefits users of 90% of linux systems out there warrants place in the upstream.

  18. jbergstroem commented on Sep 13, 2014

    @jbergstroem
    Contributor

    @flyingmutant Upstream has already chimed in. My suggestion at least tries to help out moving forward. I don't think "please" or "why" does.

  19. mattsta commented on Sep 13, 2014

    @mattsta
    Contributor

    a tiny patch with no external dependencies

    The last I saw, it required including systemd headers and building against systemd libraries directly to use systemd functions for systemd specific network behavior. Is there an alternative?

  20. flyingmutant commented on Sep 13, 2014

    @flyingmutant
    Contributor

    a tiny patch with no external dependencies

    The last I saw, it required including systemd headers and building against systemd libraries directly to use systemd functions for systemd specific network behavior. Is there an alternative?

    I am working on it right now and hope to submit a proper PR soon.

  21. flyingmutant commented on Sep 16, 2014

    @flyingmutant
    Contributor

    Please review — #2004.

  22. flyingmutant commented on Oct 22, 2014

    @flyingmutant
    Contributor

    For those who are interested in this feature, discussion is now continued in #2004.

  23. added a commit that references this issue on Oct 16, 2025
    c994f5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions