[Git][noosfero/noosfero][master] 2 commits: check if unicorn.pid file exists before read it

Rodrigo Souto gitlab at mg.gitlab.com
Mon Jan 8 12:50:27 BRST 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
b049deb3 by Joenio Costa at 2018-01-05T11:01:10-03:00
check if unicorn.pid file exists before read it

closes #289

- - - - -
9bd70124 by Rodrigo Souto at 2018-01-08T14:50:19+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
- - - - -


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/compare/9505f4100353d6b60761a5cc775ea3fd22cb1460...9bd701244ee8faf51e24e84de66d12ab4bfa1ef4

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/9505f4100353d6b60761a5cc775ea3fd22cb1460...9bd701244ee8faf51e24e84de66d12ab4bfa1ef4
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/52a1db1f/attachment-0001.html>


More information about the Noosfero-dev mailing list