[Git][noosfero/noosfero][stable-1.10] Merge branch 'unicorn-pid-file' into 'master'
Rodrigo Souto
gitlab at mg.gitlab.com
Mon Jan 8 13:40:58 BRST 2018
Rodrigo Souto pushed to branch stable-1.10 at Noosfero / noosfero
Commits:
6d9dd22e by Rodrigo Souto at 2018-01-08T15:40:51+00:00
Merge branch 'unicorn-pid-file' into 'master'
check if unicorn.pid file exists before read it
Closes #289
See merge request noosfero/noosfero!1372
(cherry picked from commit 9bd701244ee8faf51e24e84de66d12ab4bfa1ef4)
b049deb3 check if unicorn.pid file exists before read it
- - - - -
1 changed file:
- script/production
Changes:
=====================================
script/production
=====================================
--- a/script/production
+++ b/script/production
@@ -34,7 +34,9 @@ app_server_start() {
app_server_stop() {
# see unicorn_rails(1)
- kill -s QUIT $(cat tmp/pids/unicorn.pid)
+ if [ -e tmp/pids/unicorn.pid ]; then
+ kill -s QUIT $(cat tmp/pids/unicorn.pid)
+ fi
}
app_server_restart() {
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/6d9dd22e2b0551ad41016230168cc8c7b5b6286a
---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/6d9dd22e2b0551ad41016230168cc8c7b5b6286a
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180108/fc4d87c4/attachment.html>
More information about the Noosfero-dev
mailing list