Comments (6)
Is there anything needed to be done in Puma to support this?
from puma.
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.
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.
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.
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.
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)
- Windows - Puma compiled without ssl support HOT 7
- Puma plugin in my Rails app
- Propose to rename callback hooks from "on_***" to "before_***" (or "after_***") HOT 3
- Puma, localhost, Swift, URLSession, timeout errors
- Produce new release HOT 5
- Not all invalid URIs are rejected/return 400 HOT 5
- Any way of receiving header values as an array instead of a string concatenated with commas? HOT 18
- Prioritised request queue HOT 4
- Seeing multiple "reaped unknown child process" messages HOT 4
- Marking C-extension as Ractor-safe
- Doc for configuring Puma / Rails with SSL
- Option to turn off Systemd integration HOT 1
- Puma doesn't strip tabs and spaces from header values on the left HOT 3
- Docs are unclear about status of --fork-worker
- Do some basic validation on Host HOT 4
- Use `available_processor_count` as worker numbers if `WEB_CONCURRENCY` is set to `"auto"` HOT 7
- Puma serves requests with significantly higher latency on HTTP/1.1 compared to HTTP/1.0 HOT 29
- Puma::ConnectionError: Socket timeout writing data
- ARM JRuby - consistent failures HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puma.