Commit Graph

19 Commits

Author SHA1 Message Date
Jacob Herrington 21e9a4a65b
Clean up and format markdown documentation (#2714)
* Revise and format architecture docs [ci skip]

* Fix typo and format compile options doc [ci skip]

* Revise and format deployment doc [ci skip]

* Revise and format plugins doc [ci skip]

* Fix mechanical typos [ci skip]

* Revise restart.md [ci skip]

* Revise signals.md [ci skip]

* Revise stats.md [ci skip]

* Revise and format systemd.md [ci skip]
2021-09-25 17:18:28 -06:00
Masataka Pocke Kuwabara 73c5bf2840
[doc] Add missing link to GH issue in systemd.md [ci skip] (#2673) 2021-08-04 09:07:21 -05:00
Dino Maric cc1768e122
Few documentations fixes. [ci skip] [changelog skip] (#2619)
Sanitizing docs on few places. Ain't much. But, it's honest work :).
2021-05-04 12:33:06 -06:00
Ewoud Kohl van Wijngaarden 5af91ff6aa
Add option to bind to activated sockets (#2362)
Bind to (systemd) activated sockets, regardless of configured binds.

Systemd can present sockets as file descriptors that are already opened.
By default Puma will use these but only if it was explicitly told to bind
to the socket. If not, it will close the activated sockets. This means
all configuration is duplicated.

Binds can contain additional configuration, but only SSL config is really
relevant since the unix and TCP socket options are ignored.

This means there is a lot of duplicated configuration for no additional
value in most setups. This option tells the launcher to bind to all
activated sockets, regardless of existing binds.

The special value 'only' can be passed. If systemd activated sockets are
detected, all other binds are cleared. When they aren't detected, the
regular binds will be used.
2020-11-10 10:24:39 -07:00
Ewoud Kohl van Wijngaarden 288a4cf756
Add systemd notify and watchdog support (#2438)
* Adds systemd notification support

* Improve systemd notification support

This takes the work by @acmh and improves on it. This is done by
squashing all commits and rebasing it. Then the following changes were
made:

* Dropped SD_NOTIFY env var. There is aleady the NOTIFY_SOCKET env var
  presented by systemd and is redundant.
* Move code is pushed in Puma::Systemd
* on_reload now emits RELOADING=1 notification to systemd
* Drop lower bound check on usec. Systemd can only be configured in
  seconds and it's hard to misconfigure. The actual code should be safe.
* Clean up integration tests and skip on JRuby

Co-authored-by: Artur Montenegro <artur.montenegro@tempest.com.br>
2020-10-26 16:02:31 -06:00
Nate Berkopec 0d354a4a52
Hacktoberfest spam grammar nitpciks 2020-10-01 07:35:57 -06:00
Patrik Ragnarsson 43d1c06b4f
Remove daemonization trace in docs [ci skip] (#2197)
Remove link to docs that were removed in 636732c447

Close #2196
2020-03-23 12:33:41 +09:00
Nate Berkopec 636732c447
Remove daemonization (#2170)
* Remove daemonization

* Fix t2 integration
2020-03-10 12:08:34 -06:00
Geremia Taglialatela 098dc6838b Add a note about wrapper scripts and sockets
Any wrapper scripts which `exec`, or other indirections in
`ExecStart`, may result in activated socket file descriptors being closed
before they reach the puma master process. For example, if using `bundle exec`,
pass the `--keep-file-descriptors` flag.

`bundle exec` can be avoided by using a `puma` executable generated by
`bundle binstubs puma`.

This commit also remove a couple of trailing whitespaces

Ref: #1499
2019-04-21 11:14:47 +02:00
Evan Phoenix b25ee64153
Merge pull request #1644 from MichalRemis/patch-1
Update systemd.md
2019-02-19 17:12:02 -08:00
Michal Remis 4f3b8c53c4
Update systemd.md
With previous configuration `pumactl restart` would't work. It would stop puma instead of restarting if it was started by systemd before. This also occurs when capistrano restarts puma after deploy.
2018-09-11 00:42:48 +02:00
Ubuntu 765c125e41 Docs update. Using a configuration file should be prioritized higher than inline options. Added example Rails configuration to the variants. Linked to Ubuntu setup from deployment docs. 2018-06-24 08:17:28 +00:00
Jean-Philippe Doyle 22a9035542 Add a notice for systemd with socket path in release path (#1534) 2018-03-20 11:58:36 -06:00
David Kellum 31b02825d3 Additional docs/systemd refinements (3) (#1373)
* docs/systemd: consistent <WD> replacement messaging

* Note that socket activation doesn't work on jruby

github: puma/puma#1367
2017-07-19 09:43:45 -06:00
Maurizio De Santis b494bdafad Add missing `WorkingDirectory` directive (#1370)
Add missing `WorkingDirectory` directive in Alternative Forking Configuration template
2017-07-17 13:58:25 -06:00
David Kellum 5814e39b0e Additional docs/systemd refinements (#1329)
* More docs/systemd refinements

 * Section renamed Alternative Forking Configuration with explanation
   given for when to use this.
 * capistrano3-puma in sub-section with consolidated dry-run shell
   commands
 * Section Service Configuration contrasts and references Forking
   section
 * Streamline config samples and highlight using ini format

* More intro to docs/systemd, alt forking section

* Add docs/systemd link to tools/jungle/README, for parity

* Add systemd, alt-forking Always and WantedBy

* Add another link to systemd from README, capistrano section

* minor typo
2017-06-26 17:27:31 -04:00
Maurizio De Santis 13434ac998 Add background process configuration (#1172)
I found that the configuration proposed doesn't fit very well when Puma is daemonized, that is a common situation when Capistrano is used for deployment. I added my configuration which seems to work pretty well together with the default capistrano3-puma gem settings.
2016-12-12 09:53:28 -07:00
David Kellum 3a2de57b51 docs/system.md sample config refinements and elaborations
* A few tweaks to socket activation config
* Add systemctl command usage
2016-04-07 09:03:51 -07:00
David Kellum ca246f963b Add docs/systemd.md (with socket activation sub-section) 2016-04-01 14:53:25 -07:00