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:
Michal Remis 2018-09-11 00:42:48 +02:00 committed by GitHub
parent 395337df4a
commit 4f3b8c53c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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
~~~~