Giter VIP home page Giter VIP logo

Comments (6)

dentarg avatar dentarg commented on August 20, 2024

Is there anything needed to be done in Puma to support this?

from puma.

hadmut avatar hadmut commented on August 20, 2024

I wouldn't see how to start Puma/rack in its current state. If it is possible, there should be something in the docs explaining it.

from puma.

dentarg avatar dentarg commented on August 20, 2024

You start Puma by running puma? Or bundle exec puma

Have you seen https://github.com/puma/puma/blob/master/docs/systemd.md?

from puma.

hadmut avatar hadmut commented on August 20, 2024

No, didn't see this.

I recently spent some time trying to find a solution for rack applications with different servers such as puma, but for whatever reason, I did not find this, not a single hint that puma is capable of running from systemd with socket activation.

But it seems to solve my problem only partly.

If you need to pass the TLS key file with a -b option like
ExecStart=//puma -b tcp://0.0.0.0:9292 -b ssl://0.0.0.0:9293?key=key.pem&cert=cert.pem

will this still work with socket activation? The Examples seem to intermix a permanent start as a regular service with a socket activation.

from puma.

dentarg avatar dentarg commented on August 20, 2024

I'm not using systemd myself so I'm not sure. Maybe you can test it and report back. Maybe you can even improve the docs if there's need for that. This is open source after all :-)

from puma.

dentarg avatar dentarg commented on August 20, 2024

I don't think anything needs to happen in Puma to accomplish this, so I'll close the issue. Happy to be proven wrong though!

from puma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.