From bb3de77126fa1f69f7f5ee7ab00e3419c654dc4d Mon Sep 17 00:00:00 2001 From: Joshua Botz Date: Wed, 17 Nov 2021 15:38:12 -0500 Subject: [PATCH] Fixed service crashing --- conf/acropolis-web.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/acropolis-web.service b/conf/acropolis-web.service index 6655f1c..8beb608 100644 --- a/conf/acropolis-web.service +++ b/conf/acropolis-web.service @@ -8,7 +8,8 @@ User=__APP__ WorkingDirectory=__FINALPATH__ Environment="RAILS_ENV=production" Environment="PORT=__PORT_WEB__" -ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec unicorn -c config/unicorn.rb -D +Environment=UNICORN_LISTENER=__FINALPATH__/tmp/sockets/unicorn.sock +ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec unicorn --config config/unicorn.rb -E production ExecReload=/bin/kill -SIGUSR1 $MAINPID TimeoutSec=60 RestartSec=60