mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
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.
This commit is contained in:
parent
395337df4a
commit
4f3b8c53c4
1 changed files with 6 additions and 0 deletions
|
@ -247,6 +247,12 @@ PIDFile=<WD>/shared/tmp/pids/puma.pid
|
|||
# reconsider if you actually need the forking config.
|
||||
Restart=no
|
||||
|
||||
# `puma_ctl restart` wouldn't work without this. It's because `pumactl`
|
||||
# changes PID on restart and systemd stops the service afterwards
|
||||
# because of the PID change. This option prevents stopping after PID
|
||||
# change.
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
~~~~
|
||||
|
|
Loading…
Add table
Reference in a new issue